pub trait Batchable:
Gettable<Key: Array, Value: CodecShared + Clone, Error = Error>
+ Updatable
+ Deletable {
// Provided methods
fn start_batch(&self) -> Batch<'_, Self::Key, Self::Value, Self>
where Self: Sized + Sync,
Self::Value: Send + Sync { ... }
fn write_batch<'a, Iter>(
&'a mut self,
iter: Iter,
) -> impl Future<Output = Result<(), Error>> + Send + use<'a, Self, Iter>
where Self: Send,
Iter: Iterator<Item = (Self::Key, Option<Self::Value>)> + Send + 'a { ... }
}Expand description
A k/v store that supports making batched changes.
Provided Methods§
Sourcefn start_batch(&self) -> Batch<'_, Self::Key, Self::Value, Self>
fn start_batch(&self) -> Batch<'_, Self::Key, Self::Value, Self>
Returns a new empty batch of changes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.