pub struct NullForgetter;Expand description
A no-op forgetter that never consolidates. Useful as a default.
Trait Implementations§
Source§impl Forgetter for NullForgetter
impl Forgetter for NullForgetter
Source§fn maybe_consolidate<'life0, 'life1, 'async_trait>(
&'life0 self,
_store: &'life1 Arc<dyn MemoryStore>,
_threshold: usize,
) -> Pin<Box<dyn Future<Output = Result<usize, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn maybe_consolidate<'life0, 'life1, 'async_trait>(
&'life0 self,
_store: &'life1 Arc<dyn MemoryStore>,
_threshold: usize,
) -> Pin<Box<dyn Future<Output = Result<usize, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run consolidation if the L3 file count exceeds
threshold.
Returns the number of files removed.Auto Trait Implementations§
impl Freeze for NullForgetter
impl RefUnwindSafe for NullForgetter
impl Send for NullForgetter
impl Sync for NullForgetter
impl Unpin for NullForgetter
impl UnsafeUnpin for NullForgetter
impl UnwindSafe for NullForgetter
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