pub struct PrefetchHint {
pub offset: u64,
pub length: usize,
pub priority: PrefetchPriority,
}Expand description
A hint advising the scheduler to prefetch a region of a file.
Fields§
§offset: u64Byte offset where the region starts.
length: usizeNumber of bytes to prefetch.
priority: PrefetchPriorityPriority of this prefetch hint.
Trait Implementations§
Source§impl Clone for PrefetchHint
impl Clone for PrefetchHint
Source§fn clone(&self) -> PrefetchHint
fn clone(&self) -> PrefetchHint
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 moreAuto Trait Implementations§
impl Freeze for PrefetchHint
impl RefUnwindSafe for PrefetchHint
impl Send for PrefetchHint
impl Sync for PrefetchHint
impl Unpin for PrefetchHint
impl UnsafeUnpin for PrefetchHint
impl UnwindSafe for PrefetchHint
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