pub struct MapFlags {
pub present: bool,
pub writable: bool,
pub user: bool,
pub write_through: bool,
pub cache_disabled: bool,
pub no_execute: bool,
}Expand description
Memory mapping flags
Fields§
§present: boolPage is present (mapped)
writable: boolPage is writable
user: boolPage is user-accessible
write_through: boolWrite-through caching
cache_disabled: boolCache disabled
no_execute: boolNo-execute (NX)
Implementations§
Source§impl MapFlags
impl MapFlags
Sourcepub const fn read_write() -> Self
pub const fn read_write() -> Self
Creates flags for a read-write kernel mapping
Sourcepub const fn user_read_write() -> Self
pub const fn user_read_write() -> Self
Creates flags for a user mapping
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapFlags
impl RefUnwindSafe for MapFlags
impl Send for MapFlags
impl Sync for MapFlags
impl Unpin for MapFlags
impl UnsafeUnpin for MapFlags
impl UnwindSafe for MapFlags
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more