Skip to main content

AsyncBatchOperations

Trait AsyncBatchOperations 

Source
pub trait AsyncBatchOperations {
    // Required methods
    fn insert(&mut self, key: Vec<u8>, value: Vec<u8>);
    fn remove(&mut self, key: Vec<u8>);
    fn expect_value(&mut self, key: Vec<u8>, expected_value: Vec<u8>);
    fn commit(self) -> impl Future<Output = Result<()>>;
}

Required Methods§

Source

fn insert(&mut self, key: Vec<u8>, value: Vec<u8>)

Source

fn remove(&mut self, key: Vec<u8>)

Source

fn expect_value(&mut self, key: Vec<u8>, expected_value: Vec<u8>)

Source

fn commit(self) -> impl Future<Output = Result<()>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§