#[repr(u64)]pub enum MemAdvice {
Normal = 0,
Random = 1_023,
Sequential = 1_047_552,
}Expand description
Memory access pattern advice.
This encodes a subset of POSIX.1-2001 madvise flags, and is intending to
be a workable cross platform abstraction. In particular, the values do not
correspond to any libc or other lib constants, and are arranged in
ascending order of minimal to maximum priority in the presence of
concurrent interest in the same region.
Variants§
Trait Implementations§
Source§impl Ord for MemAdvice
impl Ord for MemAdvice
Source§impl PartialOrd for MemAdvice
impl PartialOrd for MemAdvice
impl Copy for MemAdvice
impl Eq for MemAdvice
impl StructuralPartialEq for MemAdvice
Auto Trait Implementations§
impl Freeze for MemAdvice
impl RefUnwindSafe for MemAdvice
impl Send for MemAdvice
impl Sync for MemAdvice
impl Unpin for MemAdvice
impl UnwindSafe for MemAdvice
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