pub struct SqliteCacheTracker<F> { /* private fields */ }Expand description
A cache tracker that uses a sqlite database as persistent storage
Implementations
Trait Implementations
impl<F> CacheTracker for SqliteCacheTracker<F> where
F: Fn(i64, BlockInfo) -> Option<i64> + Send + Sync,
impl<F> CacheTracker for SqliteCacheTracker<F> where
F: Fn(i64, BlockInfo) -> Option<i64> + Send + Sync,
called whenever blocks were accessed Read more
called whenever blocks have been deleted by gc.
notification that only these ids should be retained Read more
sort ids by importance. More important ids should go to the end. Read more
indicate whether retain_ids should be called on startup
called whenever blocks were written Read more
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
