pub enum Protection {
ReadExecute,
Read,
ReadWriteExecute,
ReadWrite,
None,
}Expand description
Page protection flags with human-readable descriptions
Variants§
ReadExecute
Read-only, executable
Read
Read-only, non-executable
ReadWriteExecute
Read-write, executable
ReadWrite
Read-write, non-executable
None
No access (page not present)
Implementations§
Source§impl Protection
impl Protection
Sourcepub fn can_execute(self) -> bool
pub fn can_execute(self) -> bool
Check if protection allows execution
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
Get protection description
Trait Implementations§
Source§impl Clone for Protection
impl Clone for Protection
Source§fn clone(&self) -> Protection
fn clone(&self) -> Protection
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 Protection
impl Debug for Protection
Source§impl From<PageTableFlags> for Protection
impl From<PageTableFlags> for Protection
Source§impl PartialEq for Protection
impl PartialEq for Protection
impl Copy for Protection
impl Eq for Protection
impl StructuralPartialEq for Protection
Auto Trait Implementations§
impl Freeze for Protection
impl RefUnwindSafe for Protection
impl Send for Protection
impl Sync for Protection
impl Unpin for Protection
impl UnwindSafe for Protection
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