pub enum Protect {
ReadOnly,
ReadWrite,
ReadCopy,
ReadExec,
}
Expand description
Protection level for a page.
Variants§
ReadOnly
The page(s) may only be read from.
ReadWrite
The page(s) may be read from and written to.
ReadCopy
Like ReadWrite
, but changes are not shared.
ReadExec
The page(s) may be read from and executed.
Trait Implementations§
source§impl Ord for Protect
impl Ord for Protect
source§impl PartialEq for Protect
impl PartialEq for Protect
source§impl PartialOrd for Protect
impl PartialOrd for Protect
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Protect
impl Eq for Protect
impl StructuralPartialEq for Protect
Auto Trait Implementations§
impl Freeze for Protect
impl RefUnwindSafe for Protect
impl Send for Protect
impl Sync for Protect
impl Unpin for Protect
impl UnwindSafe for Protect
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