pub trait Transaction<Storage: ?Sized>: AsRef<Storage> + AsMut<Storage> + Send + Sync {
    // Required method
    fn commit(&mut self) -> StorageResult<()>;
}
Expand description

The type is storage transaction and holds uncommitted state.

Required Methods§

source

fn commit(&mut self) -> StorageResult<()>

Commits the pending state changes into the storage.

Implementors§

source§

impl<Storage: ?Sized> Transaction<Storage> for StorageTransaction<Storage>