#[non_exhaustive]pub enum GuestSurface {
Standard,
HardenedLeaf,
}Expand description
The script environment selected by an execution preset.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Standard
The selected profile’s ordinary globals and libraries.
HardenedLeaf
The frozen, restricted environment used for stateless decisions.
Implementations§
Source§impl GuestSurface
impl GuestSurface
pub const fn is_hardened_leaf(self) -> bool
Trait Implementations§
Source§impl Clone for GuestSurface
impl Clone for GuestSurface
Source§fn clone(&self) -> GuestSurface
fn clone(&self) -> GuestSurface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GuestSurface
impl Debug for GuestSurface
Source§impl Default for GuestSurface
impl Default for GuestSurface
Source§fn default() -> GuestSurface
fn default() -> GuestSurface
Returns the “default value” for a type. Read more
Source§impl PartialEq for GuestSurface
impl PartialEq for GuestSurface
impl Copy for GuestSurface
impl Eq for GuestSurface
impl StructuralPartialEq for GuestSurface
Auto Trait Implementations§
impl Freeze for GuestSurface
impl RefUnwindSafe for GuestSurface
impl Send for GuestSurface
impl Sync for GuestSurface
impl Unpin for GuestSurface
impl UnsafeUnpin for GuestSurface
impl UnwindSafe for GuestSurface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more