Struct ipfs_sqlite_block_store::cache::SqliteCacheTracker[][src]

pub struct SqliteCacheTracker<F> { /* fields omitted */ }

A cache tracker that uses a sqlite database as persistent storage

Implementations

impl<F> SqliteCacheTracker<F> where
    F: Fn(i64, BlockInfo) -> Option<i64>, 
[src]

pub fn memory(mk_cache_entry: F) -> Result<Self>[src]

pub fn open(path: impl AsRef<Path>, mk_cache_entry: F) -> Result<Self>[src]

Trait Implementations

impl<F> CacheTracker for SqliteCacheTracker<F> where
    F: Fn(i64, BlockInfo) -> Option<i64> + Send + Sync
[src]

impl<F> Debug for SqliteCacheTracker<F>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> References<RawCodec> for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.