pub enum ProtectionMode {
NoAccess,
ReadOnly,
ReadWrite,
}
Expand description
Enumeration of options for setting the memory protection mode.
Variants§
Trait Implementations§
Source§impl Clone for ProtectionMode
impl Clone for ProtectionMode
Source§fn clone(&self) -> ProtectionMode
fn clone(&self) -> ProtectionMode
Returns a copy 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 ProtectionMode
impl Debug for ProtectionMode
Source§impl Default for ProtectionMode
impl Default for ProtectionMode
Source§fn default() -> ProtectionMode
fn default() -> ProtectionMode
Returns the “default value” for a type. Read more
Source§impl Ord for ProtectionMode
impl Ord for ProtectionMode
Source§fn cmp(&self, other: &ProtectionMode) -> Ordering
fn cmp(&self, other: &ProtectionMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProtectionMode
impl PartialEq for ProtectionMode
Source§impl PartialOrd for ProtectionMode
impl PartialOrd for ProtectionMode
impl Copy for ProtectionMode
impl Eq for ProtectionMode
impl StructuralPartialEq for ProtectionMode
Auto Trait Implementations§
impl Freeze for ProtectionMode
impl RefUnwindSafe for ProtectionMode
impl Send for ProtectionMode
impl Sync for ProtectionMode
impl Unpin for ProtectionMode
impl UnwindSafe for ProtectionMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, A> ToOwnedIn<A> for T
impl<T, A> ToOwnedIn<A> for T
Source§fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
fn try_to_owned_in<I>(
&self,
_alloc_in: I,
) -> Result<<T as ToOwnedIn<A>>::Owned, StorageError>where
I: AllocateIn<Alloc = A>,
To to create an owned copy of this instance in a given allocation target.
Source§fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
fn to_owned_in<I>(&self, alloc_in: I) -> Self::Ownedwhere
I: AllocateIn<Alloc = A>,
Create an owned copy of this instance in a given allocation target.