Struct DBSimpleStateStore
pub struct DBSimpleStateStore<T: KVStore>(/* private fields */);Expand description
KVStore backed SimpleStateStore.
Implementations§
§impl<T: KVStore> DBSimpleStateStore<T>
impl<T: KVStore> DBSimpleStateStore<T>
pub fn new(store: T) -> Self
Trait Implementations§
§impl<T: KVStore> SimpleStateStore for DBSimpleStateStore<T>
impl<T: KVStore> SimpleStateStore for DBSimpleStateStore<T>
§fn atomic_write<'a>(
&'a self,
changes: Box<dyn Iterator<Item = (Key, Option<Value>)> + 'a>,
) -> Result<(), SimpleStateStoreError>
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.
§impl<T: KVStore> StateR for DBSimpleStateStore<T>
impl<T: KVStore> StateR for DBSimpleStateStore<T>
Auto Trait Implementations§
impl<T> Freeze for DBSimpleStateStore<T>where
T: Freeze,
impl<T> RefUnwindSafe for DBSimpleStateStore<T>where
T: RefUnwindSafe,
impl<T> Send for DBSimpleStateStore<T>
impl<T> Sync for DBSimpleStateStore<T>
impl<T> Unpin for DBSimpleStateStore<T>where
T: Unpin,
impl<T> UnwindSafe for DBSimpleStateStore<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more