pub enum TouchHint {
Never,
Eager,
Lazy,
}
Expand description
Hint for when to touch (prewarm) memory pages during mapping creation.
Variants§
Never
Don’t touch pages during creation (default).
Eager
Eagerly touch all pages during creation to prewarm page tables and improve first-access latency. Useful for benchmarking scenarios where you want consistent timing without page fault overhead.
Lazy
Touch pages lazily on first access (same as Never for now).
Trait Implementations§
impl Copy for TouchHint
impl Eq for TouchHint
impl StructuralPartialEq for TouchHint
Auto Trait Implementations§
impl Freeze for TouchHint
impl RefUnwindSafe for TouchHint
impl Send for TouchHint
impl Sync for TouchHint
impl Unpin for TouchHint
impl UnwindSafe for TouchHint
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