pub enum MmapAdvice {
Normal,
Random,
Sequential,
WillNeed,
DontNeed,
}
Expand description
Memory access pattern advice for the OS.
Variants§
Normal
Normal access pattern (default).
Random
Random access pattern.
Sequential
Sequential access pattern.
WillNeed
Will need this range soon.
DontNeed
Won’t need this range soon.
Trait Implementations§
Source§impl Clone for MmapAdvice
impl Clone for MmapAdvice
Source§fn clone(&self) -> MmapAdvice
fn clone(&self) -> MmapAdvice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MmapAdvice
impl Debug for MmapAdvice
Source§impl PartialEq for MmapAdvice
impl PartialEq for MmapAdvice
impl Copy for MmapAdvice
impl Eq for MmapAdvice
impl StructuralPartialEq for MmapAdvice
Auto Trait Implementations§
impl Freeze for MmapAdvice
impl RefUnwindSafe for MmapAdvice
impl Send for MmapAdvice
impl Sync for MmapAdvice
impl Unpin for MmapAdvice
impl UnwindSafe for MmapAdvice
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