Skip to main content

BatchTrait

Trait BatchTrait 

Source
pub trait BatchTrait {
    // Required methods
    fn insert(&mut self, key: &[u8], value: &[u8]);
    fn remove(&mut self, key: &[u8]);
    fn commit(&mut self) -> Result<()>;
}
Expand description

Trait for batch write operations

Required Methods§

Source

fn insert(&mut self, key: &[u8], value: &[u8])

Source

fn remove(&mut self, key: &[u8])

Source

fn commit(&mut self) -> Result<()>

Implementors§