Trait linera_views::store::WritableKeyValueStore
source · 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§
Object Safety§
This trait is not object safe.