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§
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<()>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".