pub struct Flags {
pub writable: bool,
pub executable: bool,
pub user_accessible: bool,
pub cached: bool,
}
Expand description
Defines the permissions for a region of memory. Used both for abstract regions of memory (e.g. entries in a memory map) and as a architecture-common representation of paging structures.
The Add
implementation “coalesces” two sets of Flags
, giving a set of Flags
that has the permissions of
both of the sets. For example, if one region is writable and the other is not, the coalesced flags will be
writable. By default, a region is considered to be cached, so coalesced flags will only be cached if both input
regions can safely be cached.
Fields§
§writable: bool
§executable: bool
§user_accessible: bool
§cached: bool
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)