pub struct IpldCache<S, C, T> { /* private fields */ }Expand description
Cache for ipld blocks.
Implementations§
Trait Implementations§
Source§impl<S: Store + Send + Sync, C, T> Cache<C, T> for IpldCache<S, C, T>
impl<S: Store + Send + Sync, C, T> Cache<C, T> for IpldCache<S, C, T>
Source§fn create_batch(&self) -> CacheBatch<C, T>
fn create_batch(&self) -> CacheBatch<C, T>
Creates a typed batch.
Source§fn create_batch_with_capacity(&self, capacity: usize) -> CacheBatch<C, T>
fn create_batch_with_capacity(&self, capacity: usize) -> CacheBatch<C, T>
Creates a typed batch.
Source§fn insert_batch<'life0, 'async_trait>(
&'life0 self,
batch: CacheBatch<C, T>,
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_batch<'life0, 'async_trait>(
&'life0 self,
batch: CacheBatch<C, T>,
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Inserts a batch into the store.
Source§fn insert<'life0, 'async_trait>(
&'life0 self,
value: T,
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
value: T,
) -> Pin<Box<dyn Future<Output = Result<Cid>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Encodes and inserts a block.
Source§impl<S: ReadonlyStore + Send + Sync, C, T> ReadonlyCache<C, T> for IpldCache<S, C, T>
impl<S: ReadonlyStore + Send + Sync, C, T> ReadonlyCache<C, T> for IpldCache<S, C, T>
Auto Trait Implementations§
impl<S, C, T> !Freeze for IpldCache<S, C, T>
impl<S, C, T> !RefUnwindSafe for IpldCache<S, C, T>
impl<S, C, T> Send for IpldCache<S, C, T>
impl<S, C, T> Sync for IpldCache<S, C, T>
impl<S, C, T> Unpin for IpldCache<S, C, T>
impl<S, C, T> UnwindSafe for IpldCache<S, C, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more