hotstuff_rs::block_tree::pluggables

Trait KVStore

source
pub trait KVStore:
    KVGet
    + Clone
    + Send
    + 'static {
    type WriteBatch: WriteBatch;
    type Snapshot<'a>: 'a + KVGet;

    // Required methods
    fn write(&mut self, wb: Self::WriteBatch);
    fn clear(&mut self);
    fn snapshot<'b>(&'b self) -> Self::Snapshot<'_>;
}

Required Associated Types§

Required Methods§

source

fn write(&mut self, wb: Self::WriteBatch)

source

fn clear(&mut self)

source

fn snapshot<'b>(&'b self) -> Self::Snapshot<'_>

Object Safety§

This trait is not object safe.

Implementors§