pub enum MemoryAdvice {
WillNeed,
Random,
}Expand description
A kernel page-cache hint for a byte range within a mapped artifact.
This deliberately represents only the two policy actions the .fttsq access classes need.
Adding another OS-specific hint requires giving it a model-level meaning first; otherwise an
advisory syscall becomes an unreviewable collection of performance folklore.
Variants§
WillNeed
The range is recurrent and should be faulted in before steady-state decoding.
Random
The range is sparse and row-granular, so read-ahead is counterproductive.
Trait Implementations§
Source§impl Clone for MemoryAdvice
impl Clone for MemoryAdvice
Source§fn clone(&self) -> MemoryAdvice
fn clone(&self) -> MemoryAdvice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryAdvice
Source§impl Debug for MemoryAdvice
impl Debug for MemoryAdvice
impl Eq for MemoryAdvice
Source§impl PartialEq for MemoryAdvice
impl PartialEq for MemoryAdvice
impl StructuralPartialEq for MemoryAdvice
Auto Trait Implementations§
impl Freeze for MemoryAdvice
impl RefUnwindSafe for MemoryAdvice
impl Send for MemoryAdvice
impl Sync for MemoryAdvice
impl Unpin for MemoryAdvice
impl UnsafeUnpin for MemoryAdvice
impl UnwindSafe for MemoryAdvice
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