pub enum Prefetch {
Span,
ChunkPopulate,
ChunkWillneed,
Hybrid,
}Expand description
How the mapped pages are made resident before the caller reads them.
Variants§
Span
One MADV_POPULATE_READ per worker, covering that worker’s span.
ChunkPopulate
MADV_POPULATE_READ in queue-sized pieces of each worker’s span.
ChunkWillneed
posix_fadvise(POSIX_FADV_WILLNEED) of the next queue-sized piece
on a private file descriptor, issued before the caller reads.
Hybrid
Will-need the next piece, then MADV_POPULATE_READ the current one.
Trait Implementations§
impl Copy for Prefetch
impl Eq for Prefetch
impl StructuralPartialEq for Prefetch
Auto Trait Implementations§
impl Forget for Prefetch
impl Freeze for Prefetch
impl Move for Prefetch
impl RefUnwindSafe for Prefetch
impl Send for Prefetch
impl Sync for Prefetch
impl Unpin for Prefetch
impl UnsafeUnpin for Prefetch
impl UnwindSafe for Prefetch
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