pub struct PageProtection { /* private fields */ }Expand description
Represents memory page protection flags
Implementations§
Source§impl PageProtection
impl PageProtection
Sourcepub fn is_readable(&self) -> bool
pub fn is_readable(&self) -> bool
Checks if the page is readable
Sourcepub fn is_writable(&self) -> bool
pub fn is_writable(&self) -> bool
Checks if the page is writable
Sourcepub fn is_executable(&self) -> bool
pub fn is_executable(&self) -> bool
Checks if the page is executable
Sourcepub fn read_write() -> Self
pub fn read_write() -> Self
Creates a read-write protection
Sourcepub fn read_execute() -> Self
pub fn read_execute() -> Self
Creates a read-execute protection
Trait Implementations§
Source§impl Clone for PageProtection
impl Clone for PageProtection
Source§fn clone(&self) -> PageProtection
fn clone(&self) -> PageProtection
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 PageProtection
impl Debug for PageProtection
Source§impl PartialEq for PageProtection
impl PartialEq for PageProtection
impl Copy for PageProtection
impl Eq for PageProtection
impl StructuralPartialEq for PageProtection
Auto Trait Implementations§
impl Freeze for PageProtection
impl RefUnwindSafe for PageProtection
impl Send for PageProtection
impl Sync for PageProtection
impl Unpin for PageProtection
impl UnsafeUnpin for PageProtection
impl UnwindSafe for PageProtection
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