Struct ipfs_sqlite_block_store::cache::SqliteCacheTracker [−][src]
pub struct SqliteCacheTracker<F> { /* fields omitted */ }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, [src]
impl<F> CacheTracker for SqliteCacheTracker<F> where
F: Fn(i64, BlockInfo) -> Option<i64> + Send + Sync, [src]fn blocks_accessed(&self, blocks: Vec<BlockInfo>)[src]
fn blocks_accessed(&self, blocks: Vec<BlockInfo>)[src]called whenever blocks were accessed Read more
fn blocks_deleted(&self, blocks: Vec<BlockInfo>)[src]
fn blocks_deleted(&self, blocks: Vec<BlockInfo>)[src]called whenever blocks have been deleted by gc.
fn sort_ids(&self, ids: &mut [i64])[src]
fn sort_ids(&self, ids: &mut [i64])[src]sort ids by importance. More important ids should go to the end. Read more
fn blocks_written(&self, blocks: Vec<WriteInfo>)[src]
fn blocks_written(&self, blocks: Vec<WriteInfo>)[src]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,
F: Send,
impl<F> Sync for SqliteCacheTracker<F> where
F: Sync,
F: Sync,
impl<F> Unpin for SqliteCacheTracker<F> where
F: Unpin,
F: Unpin,
impl<F> !UnwindSafe for SqliteCacheTracker<F>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self