pub struct NoPrefetch;Expand description
A no-op prefetch strategy for baseline and testing.
Trait Implementations§
Source§impl Clone for NoPrefetch
impl Clone for NoPrefetch
Source§fn clone(&self) -> NoPrefetch
fn clone(&self) -> NoPrefetch
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 moreSource§impl Debug for NoPrefetch
impl Debug for NoPrefetch
Source§impl Default for NoPrefetch
impl Default for NoPrefetch
Source§fn default() -> NoPrefetch
fn default() -> NoPrefetch
Returns the “default value” for a type. Read more
Source§impl<K> PrefetchStrategy<K> for NoPrefetch
impl<K> PrefetchStrategy<K> for NoPrefetch
Source§fn predict_next(&mut self, _accessed_key: &K) -> Vec<K>
fn predict_next(&mut self, _accessed_key: &K) -> Vec<K>
Predict next keys likely to be accessed following the current key
Source§fn update_access_pattern(&mut self, _key: &K)
fn update_access_pattern(&mut self, _key: &K)
Update internal model/state with a new accessed key for better predictions
Auto Trait Implementations§
impl Freeze for NoPrefetch
impl RefUnwindSafe for NoPrefetch
impl Send for NoPrefetch
impl Sync for NoPrefetch
impl Unpin for NoPrefetch
impl UnsafeUnpin for NoPrefetch
impl UnwindSafe for NoPrefetch
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