[][src]Struct ipld_block_builder::IpldCache

pub struct IpldCache<S, C, T> { /* fields omitted */ }

Cache for ipld blocks.

Implementations

impl<S, C, T> IpldCache<S, C, T>[src]

pub fn new(store: S, codec: C, size: usize) -> Self[src]

Creates a new cache of size size.

Trait Implementations

impl<S: Store + Send + Sync, C, T> Cache<C, T> for IpldCache<S, C, T> where
    C: Decoder + Encoder + Clone + Send + Sync,
    T: Decode<<C as Decoder>::Codec> + Encode<<C as Encoder>::Codec> + Clone + Send + Sync
[src]

impl<S: ReadonlyStore + Send + Sync, C, T> ReadonlyCache<C, T> for IpldCache<S, C, T> where
    C: Decoder + Clone + Send + Sync,
    T: Decode<<C as Decoder>::Codec> + Clone + Send + Sync
[src]

Auto Trait Implementations

impl<S, C, T> !RefUnwindSafe for IpldCache<S, C, T>

impl<S, C, T> Send for IpldCache<S, C, T> where
    C: Send,
    S: Send,
    T: Send

impl<S, C, T> Sync for IpldCache<S, C, T> where
    C: Sync,
    S: Sync,
    T: Send

impl<S, C, T> Unpin for IpldCache<S, C, T> where
    C: Unpin,
    S: Unpin,
    T: Unpin

impl<S, C, T> UnwindSafe for IpldCache<S, C, T> where
    C: UnwindSafe,
    S: UnwindSafe,
    T: UnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.