#[repr(u8)]pub enum VmPageState {
Show 13 variants
Free = 0,
Alloc = 1,
Object = 2,
Wired = 3,
Heap = 4,
Mmu = 5,
Iommu = 6,
Ipc = 7,
Cache = 8,
Slab = 9,
Zram = 10,
FreeLoaned = 11,
Count = 12,
}Expand description
Defines the state of a VM page (vm_page_t).
Be sure to keep this enum in sync with the definition of vm_page_t.
Variants§
Free = 0
Alloc = 1
Object = 2
Wired = 3
Heap = 4
Mmu = 5
Allocated to serve arch-specific mmu purposes.
Iommu = 6
Allocated for platform-specific iommu structures.
Ipc = 7
Cache = 8
Slab = 9
Zram = 10
FreeLoaned = 11
Count = 12
Implementations§
Source§impl VmPageState
impl VmPageState
Trait Implementations§
Source§impl Clone for VmPageState
impl Clone for VmPageState
Source§fn clone(&self) -> VmPageState
fn clone(&self) -> VmPageState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VmPageState
impl Debug for VmPageState
Source§impl Display for VmPageState
impl Display for VmPageState
Source§impl Hash for VmPageState
impl Hash for VmPageState
Source§impl Ord for VmPageState
impl Ord for VmPageState
Source§fn cmp(&self, other: &VmPageState) -> Ordering
fn cmp(&self, other: &VmPageState) -> Ordering
1.21.0 (const: unstable)§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 VmPageState
impl PartialEq for VmPageState
Source§impl PartialOrd for VmPageState
impl PartialOrd for VmPageState
impl Copy for VmPageState
impl Eq for VmPageState
impl StructuralPartialEq for VmPageState
Auto Trait Implementations§
impl Freeze for VmPageState
impl RefUnwindSafe for VmPageState
impl Send for VmPageState
impl Sync for VmPageState
impl Unpin for VmPageState
impl UnsafeUnpin for VmPageState
impl UnwindSafe for VmPageState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more