pub struct MemMapFlags(/* private fields */);Expand description
Flags passed to crate::syscalls::SyscallTable::SysMemMap
Implementations§
Source§impl MemMapFlags
impl MemMapFlags
Sourcepub const DISABLE_EXEC: Self
pub const DISABLE_EXEC: Self
Don’t allow the memory to be executed
Sourcepub const MAP_RESOURCE: Self
pub const MAP_RESOURCE: Self
The given Resource ID is a valid resource to map, by default the given resource ID is ignored and the memory is treated as not associated with anything
Source§impl MemMapFlags
impl MemMapFlags
pub fn from_bits_retaining(bits: u8) -> Self
pub fn contains(self, other: MemMapFlags) -> bool
Trait Implementations§
Source§impl BitAnd for MemMapFlags
impl BitAnd for MemMapFlags
Source§impl BitOr for MemMapFlags
impl BitOr for MemMapFlags
Source§impl Clone for MemMapFlags
impl Clone for MemMapFlags
Source§fn clone(&self) -> MemMapFlags
fn clone(&self) -> MemMapFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemMapFlags
impl Debug for MemMapFlags
Source§impl Ord for MemMapFlags
impl Ord for MemMapFlags
Source§fn cmp(&self, other: &MemMapFlags) -> Ordering
fn cmp(&self, other: &MemMapFlags) -> Ordering
1.21.0 (const: unstable) · 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 MemMapFlags
impl PartialEq for MemMapFlags
Source§fn eq(&self, other: &MemMapFlags) -> bool
fn eq(&self, other: &MemMapFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MemMapFlags
impl PartialOrd for MemMapFlags
impl Copy for MemMapFlags
impl Eq for MemMapFlags
impl StructuralPartialEq for MemMapFlags
Auto Trait Implementations§
impl Freeze for MemMapFlags
impl RefUnwindSafe for MemMapFlags
impl Send for MemMapFlags
impl Sync for MemMapFlags
impl Unpin for MemMapFlags
impl UnsafeUnpin for MemMapFlags
impl UnwindSafe for MemMapFlags
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