[−][src]Struct ipld_block_builder::IpldCache
Cache for ipld blocks.
Implementations
impl<S, C, T> IpldCache<S, C, T>[src]
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]
C: Decoder + Encoder + Clone + Send + Sync,
T: Decode<<C as Decoder>::Codec> + Encode<<C as Encoder>::Codec> + Clone + Send + Sync,
fn create_batch(&self) -> CacheBatch<C, T>[src]
fn create_batch_with_capacity(&self, capacity: usize) -> CacheBatch<C, T>[src]
fn insert_batch<'life0, 'async_trait>(
&'life0 self,
batch: CacheBatch<C, T>
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
batch: CacheBatch<C, T>
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
value: T
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
value: T
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn unpin<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait, [src]
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
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]
C: Decoder + Clone + Send + Sync,
T: Decode<<C as Decoder>::Codec> + Clone + Send + Sync,
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,
C: Send,
S: Send,
T: Send,
impl<S, C, T> Sync for IpldCache<S, C, T> where
C: Sync,
S: Sync,
T: Send,
C: Sync,
S: Sync,
T: Send,
impl<S, C, T> Unpin for IpldCache<S, C, T> where
C: Unpin,
S: Unpin,
T: Unpin,
C: Unpin,
S: Unpin,
T: Unpin,
impl<S, C, T> UnwindSafe for IpldCache<S, C, T> where
C: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
C: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,