pub struct SearchCache { /* private fields */ }Expand description
In-memory cache for search results, keyed by search ID.
Implementations§
Source§impl SearchCache
impl SearchCache
Sourcepub fn with_capacity(max_entries: usize) -> Self
pub fn with_capacity(max_entries: usize) -> Self
Create a new cache with the given maximum capacity.
Trait Implementations§
Source§impl Debug for SearchCache
impl Debug for SearchCache
Auto Trait Implementations§
impl !Freeze for SearchCache
impl !RefUnwindSafe for SearchCache
impl Send for SearchCache
impl Sync for SearchCache
impl Unpin for SearchCache
impl UnsafeUnpin for SearchCache
impl UnwindSafe for SearchCache
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