Struct ipfs_sqlite_block_store::Config[][src]

pub struct Config { /* fields omitted */ }

Implementations

impl Config[src]

pub fn with_size_targets(self, size_targets: SizeTargets) -> Self[src]

Set size targets for the store

pub fn with_cache_tracker<T: CacheTracker + 'static>(
    self,
    cache_tracker: T
) -> Self
[src]

Set strategy for which non-pinned blocks to keep in case one of the size targets is exceeded.

pub fn with_pragma_synchronous(self, value: Synchronous) -> Self[src]

pub fn with_pragma_cache_pages(self, value: u64) -> Self[src]

Trait Implementations

impl Debug for Config[src]

impl Default for Config[src]

Auto Trait Implementations

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.