Enum memory::MemoryState
pub enum MemoryState {
Free,
Allocated,
Mapped,
Unmapped,
}
Expand description
The possible states that a range of exclusively-owned pages or frames can be in.
Variants§
Free
Memory is free and owned by the allocator
Allocated
Memory is allocated and can be used for a mapping
Mapped
Memory is mapped (PTE has been set)
Unmapped
Memory has been unmapped (PTE has been cleared)
Trait Implementations§
§impl PartialEq<MemoryState> for MemoryState
impl PartialEq<MemoryState> for MemoryState
§fn eq(&self, other: &MemoryState) -> bool
fn eq(&self, other: &MemoryState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl ConstParamTy for MemoryState
impl Eq for MemoryState
impl StructuralEq for MemoryState
impl StructuralPartialEq for MemoryState
Auto Trait Implementations§
impl RefUnwindSafe for MemoryState
impl Send for MemoryState
impl Sync for MemoryState
impl Unpin for MemoryState
impl UnwindSafe for MemoryState
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