pub trait WritableKeyValueStore: WithError + Send {
const MAX_VALUE_SIZE: usize;
// Required methods
fn write_batch(
&self,
batch: Batch,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
fn clear_journal(
&self,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
Expand description
Low-level, asynchronous write key-value operations. Useful for storage APIs not based on views.
Required Associated Constants§
Sourceconst MAX_VALUE_SIZE: usize
const MAX_VALUE_SIZE: usize
The maximal size of values that can be stored.
Required Methods§
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.