Struct fvm_ipld_blockstore::MemoryBlockstore
source · pub struct MemoryBlockstore { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Blockstore for MemoryBlockstore
impl Blockstore for MemoryBlockstore
source§fn put_keyed(&self, k: &Cid, block: &[u8]) -> Result<()>
fn put_keyed(&self, k: &Cid, block: &[u8]) -> Result<()>
Put a block with a pre-computed cid. Read more
source§fn put<D>(&self, mh_code: Code, block: &Block<D>) -> Result<Cid>
fn put<D>(&self, mh_code: Code, block: &Block<D>) -> Result<Cid>
Puts the block into the blockstore, computing the hash with the specified multicodec. Read more
source§impl Clone for MemoryBlockstore
impl Clone for MemoryBlockstore
source§fn clone(&self) -> MemoryBlockstore
fn clone(&self) -> MemoryBlockstore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryBlockstore
impl Debug for MemoryBlockstore
source§impl Default for MemoryBlockstore
impl Default for MemoryBlockstore
source§fn default() -> MemoryBlockstore
fn default() -> MemoryBlockstore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for MemoryBlockstore
impl !RefUnwindSafe for MemoryBlockstore
impl Send for MemoryBlockstore
impl !Sync for MemoryBlockstore
impl Unpin for MemoryBlockstore
impl UnwindSafe for MemoryBlockstore
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)