Struct ipfs_sqlite_block_store::cache::SortByIdCacheTracker [−][src]
pub struct SortByIdCacheTracker;
Expand description
a cache tracker that just sorts by id, which is the time of first addition of a block
Trait Implementations
impl CacheTracker for SortByIdCacheTracker[src]
impl CacheTracker for SortByIdCacheTracker[src]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_accessed(&self, blocks: Vec<BlockInfo>)[src]
fn blocks_accessed(&self, blocks: Vec<BlockInfo>)[src]called whenever blocks were accessed 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
fn blocks_deleted(&self, blocks: Vec<BlockInfo>)[src]
fn blocks_deleted(&self, blocks: Vec<BlockInfo>)[src]called whenever blocks have been deleted by gc.
Auto Trait Implementations
impl RefUnwindSafe for SortByIdCacheTracker
impl Send for SortByIdCacheTracker
impl Sync for SortByIdCacheTracker
impl Unpin for SortByIdCacheTracker
impl UnwindSafe for SortByIdCacheTracker
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