pub struct VsdbBlockStore { /* private fields */ }Expand description
Persistent block store backed by vsdb
Implementations§
Trait Implementations§
Source§impl BlockStore for VsdbBlockStore
impl BlockStore for VsdbBlockStore
fn put_block(&mut self, block: Block)
fn get_block(&self, hash: &BlockHash) -> Option<Block>
fn get_block_by_height(&self, h: Height) -> Option<Block>
Source§fn get_blocks_in_range(&self, from: Height, to: Height) -> Vec<Block>
fn get_blocks_in_range(&self, from: Height, to: Height) -> Vec<Block>
Get blocks in [from, to] inclusive. Default iterates one-by-one.
Source§fn tip_height(&self) -> Height
fn tip_height(&self) -> Height
Return the highest stored block height.
Auto Trait Implementations§
impl !Freeze for VsdbBlockStore
impl RefUnwindSafe for VsdbBlockStore
impl Send for VsdbBlockStore
impl Sync for VsdbBlockStore
impl Unpin for VsdbBlockStore
impl UnsafeUnpin for VsdbBlockStore
impl UnwindSafe for VsdbBlockStore
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