Struct fvm_ipld_blockstore::tracking::TrackingBlockstore
source · pub struct TrackingBlockstore<BS> {
pub stats: RefCell<BSStats>,
/* private fields */
}
Expand description
Wrapper around Blockstore
to tracking reads and writes for verification.
This struct should only be used for testing.
Fields§
§stats: RefCell<BSStats>
Implementations§
source§impl<BS> TrackingBlockstore<BS>where
BS: Blockstore,
impl<BS> TrackingBlockstore<BS>where
BS: Blockstore,
Trait Implementations§
source§impl<BS> Blockstore for TrackingBlockstore<BS>where
BS: Blockstore,
impl<BS> Blockstore for TrackingBlockstore<BS>where
BS: Blockstore,
source§fn put<D>(&self, code: Code, block: &Block<D>) -> Result<Cid>
fn put<D>(&self, code: Code, block: &Block<D>) -> Result<Cid>
Puts the block into the blockstore, computing the hash with the specified multicodec. Read more
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
Auto Trait Implementations§
impl<BS> !Freeze for TrackingBlockstore<BS>
impl<BS> !RefUnwindSafe for TrackingBlockstore<BS>
impl<BS> Send for TrackingBlockstore<BS>where
BS: Send,
impl<BS> !Sync for TrackingBlockstore<BS>
impl<BS> Unpin for TrackingBlockstore<BS>where
BS: Unpin,
impl<BS> UnwindSafe for TrackingBlockstore<BS>where
BS: UnwindSafe,
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