#[repr(u8)]pub enum MemoryPriority {
Default = 0,
High = 1,
}Expand description
Memory priorities that can be applied to VMARs and mappings.
Variants§
Default = 0
Default overcommit priority where reclamation is allowed.
High = 1
High priority prevents all reclamation.
Trait Implementations§
Source§impl Clone for MemoryPriority
impl Clone for MemoryPriority
Source§fn clone(&self) -> MemoryPriority
fn clone(&self) -> MemoryPriority
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 MemoryPriority
impl Debug for MemoryPriority
Source§impl Hash for MemoryPriority
impl Hash for MemoryPriority
Source§impl PartialEq for MemoryPriority
impl PartialEq for MemoryPriority
impl Copy for MemoryPriority
impl Eq for MemoryPriority
impl StructuralPartialEq for MemoryPriority
Auto Trait Implementations§
impl Freeze for MemoryPriority
impl RefUnwindSafe for MemoryPriority
impl Send for MemoryPriority
impl Sync for MemoryPriority
impl Unpin for MemoryPriority
impl UnsafeUnpin for MemoryPriority
impl UnwindSafe for MemoryPriority
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