pub struct PrefetchPolicy {
pub budget: usize,
}Expand description
A reader-side SpillPolicy that materializes Paged entries near
the front of the queue up to a byte budget. The writer-side dual of
super::threshold::Threshold: the writer pages data out, the reader
pages data back in — both through SpillPolicy::apply.
Fields§
§budget: usizeMaximum bytes to materialize per apply invocation.
Implementations§
Trait Implementations§
Source§impl SpillPolicy for PrefetchPolicy
impl SpillPolicy for PrefetchPolicy
Auto Trait Implementations§
impl Freeze for PrefetchPolicy
impl RefUnwindSafe for PrefetchPolicy
impl Send for PrefetchPolicy
impl Sync for PrefetchPolicy
impl Unpin for PrefetchPolicy
impl UnsafeUnpin for PrefetchPolicy
impl UnwindSafe for PrefetchPolicy
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