Trait SimpleStateStore

pub trait SimpleStateStore: StateR {
    // Required method
    fn atomic_write<'a>(
        &'a self,
        changes: Box<dyn Iterator<Item = (Key, Option<Value>)> + 'a>,
    ) -> Result<(), SimpleStateStoreError>;
}
Expand description

State storage without versioning.

Required Methods§

fn atomic_write<'a>( &'a self, changes: Box<dyn Iterator<Item = (Key, Option<Value>)> + 'a>, ) -> Result<(), SimpleStateStoreError>

Atomically apply a list of changes described by the iterator to the store.

Implementors§