[][src]Trait ipld_block_builder::store::MultiUserStore

pub trait MultiUserStore: Store {
    fn pin(
        &'a self,
        cid: &'a CidGeneric<Codec, Code>,
        path: &'a Path
    ) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + 'a + Send>>; }

Implemented by ipld storage backends that support multiple users.

Required methods

fn pin(
    &'a self,
    cid: &'a CidGeneric<Codec, Code>,
    path: &'a Path
) -> Pin<Box<dyn Future<Output = Result<(), StoreError>> + 'a + Send>>

Pin a block.

This creates a symlink chain from root -> path -> block. The block is unpinned by breaking the symlink chain.

Loading content...

Implementors

Loading content...