pub trait WritableKeyValueStore:
WithError
+ Send
+ Sync {
const MAX_VALUE_SIZE: usize;
// Required methods
fn write_batch(
&self,
batch: Batch,
) -> impl Future<Output = Result<(), Self::Error>> + Send + Sync;
fn clear_journal(
&self,
) -> impl Future<Output = Result<(), Self::Error>> + Send + Sync;
}Expand description
Asynchronous write key-value operations.
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.
Implementors§
Source§impl WritableKeyValueStore for MemoryStore
impl WritableKeyValueStore for MemoryStore
const MAX_VALUE_SIZE: usize = usize::MAX
Source§impl WritableKeyValueStore for RocksDbStoreInternal
impl WritableKeyValueStore for RocksDbStoreInternal
const MAX_VALUE_SIZE: usize = MAX_VALUE_SIZE
Source§impl WritableKeyValueStore for LimitedTestMemoryStore
Available on with_testing only.
impl WritableKeyValueStore for LimitedTestMemoryStore
Available on
with_testing only.const MAX_VALUE_SIZE: usize = 100
Source§impl WritableKeyValueStore for InactiveStore
impl WritableKeyValueStore for InactiveStore
const MAX_VALUE_SIZE: usize = 0
Source§impl<C: Context> WritableKeyValueStore for ViewContainer<C>
Available on with_testing only.
impl<C: Context> WritableKeyValueStore for ViewContainer<C>
Available on
with_testing only.