pub struct PrefetchCache { /* private fields */ }Expand description
Prefetch cache for anticipated queries
Implementations§
Source§impl PrefetchCache
impl PrefetchCache
Sourcepub fn insert(&self, query_hash: u64, results: Vec<SearchResult>)
pub fn insert(&self, query_hash: u64, results: Vec<SearchResult>)
Insert into cache
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrefetchCache
impl !RefUnwindSafe for PrefetchCache
impl Send for PrefetchCache
impl Sync for PrefetchCache
impl Unpin for PrefetchCache
impl !UnwindSafe for PrefetchCache
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