[−][src]Trait ipfs_embed_core::Storage
Associated Types
type Subscription: Stream<Item = StorageEvent> + Send + Unpin
Required methods
fn get(&self, cid: &Cid) -> Result<Option<Vec<u8>>>
fn insert(&self, block: &Block<S>) -> Result<()>
#[must_use]fn alias<'life0, 'life1, 'async_trait, T: AsRef<[u8]> + Send + Sync>(
&'life0 self,
alias: T,
cid: Option<&'life1 Cid>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
alias: T,
cid: Option<&'life1 Cid>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn resolve<T: AsRef<[u8]> + Send + Sync>(&self, alias: T) -> Result<Option<Cid>>
#[must_use]fn pinned<'life0, 'life1, 'async_trait>(
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<Option<bool>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
cid: &'life1 Cid
) -> Pin<Box<dyn Future<Output = Result<Option<bool>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,