pub trait Batcher {
    // Required method
    fn new_batch<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<BoxedBatch>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Required Methods§

source

fn new_batch<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<BoxedBatch>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Creates a write-only database that buffers changes to its host db until a final write is called.

Implementors§

source§

impl Batcher for avalanche_types::subnet::rpc::database::corruptabledb::Database

source§

impl Batcher for avalanche_types::subnet::rpc::database::memdb::Database

source§

impl Batcher for DatabaseClient

source§

impl Batcher for avalanche_types::subnet::rpc::database::versiondb::Database