pub struct SqliteCacheTracker<F> { /* private fields */ }
Expand description
A cache tracker that uses a sqlite database as persistent storage
Implementations§
Trait Implementations§
Source§impl<F> CacheTracker for SqliteCacheTracker<F>
impl<F> CacheTracker for SqliteCacheTracker<F>
Source§fn blocks_accessed(&self, blocks: Vec<BlockInfo>)
fn blocks_accessed(&self, blocks: Vec<BlockInfo>)
called whenever blocks were accessed Read more
Source§fn blocks_deleted(&self, blocks: Vec<BlockInfo>)
fn blocks_deleted(&self, blocks: Vec<BlockInfo>)
called whenever blocks have been deleted by gc.
Source§fn retain_ids(&self, ids: &[i64])
fn retain_ids(&self, ids: &[i64])
notification that only these ids should be retained Read more
Source§fn sort_ids(&self, ids: &mut [i64])
fn sort_ids(&self, ids: &mut [i64])
sort ids by importance. More important ids should go to the end. Read more
Source§fn has_persistent_state(&self) -> bool
fn has_persistent_state(&self) -> bool
indicate whether
retain_ids
should be called on startupAuto Trait Implementations§
impl<F> Freeze for SqliteCacheTracker<F>where
F: Freeze,
impl<F> !RefUnwindSafe for SqliteCacheTracker<F>
impl<F> Send for SqliteCacheTracker<F>where
F: Send,
impl<F> Sync for SqliteCacheTracker<F>where
F: Sync,
impl<F> Unpin for SqliteCacheTracker<F>where
F: Unpin,
impl<F> !UnwindSafe for SqliteCacheTracker<F>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more