pub trait NestedStore: Store {
    type Inner;

    // Required methods
    fn commit(self) -> Self::Inner;
    fn rollback(self) -> Self::Inner;
    fn has_pending_updates(&self) -> bool;
    fn pending_update_byte_size(&self) -> usize;
}
Expand description

A key-value store that supports the commit operation.

Required Associated Types§

source

type Inner

Type of the inner store.

Required Methods§

source

fn commit(self) -> Self::Inner

Commit any changes to the underlying store.

If this method is not called the changes may be discarded by the store.

source

fn rollback(self) -> Self::Inner

Rollback any changes.

source

fn has_pending_updates(&self) -> bool

Whether there are any store updates pending to be committed.

source

fn pending_update_byte_size(&self) -> usize

Size (in bytes) of any pending updates.

Implementors§