Storage

Trait Storage 

Source
pub trait Storage {
    // Required method
    fn txn<'a>(&'a mut self) -> Result<Box<dyn StorageTxn + 'a>, Error>;
}
Expand description

A trait for objects able to act as task storage. Most of the interesting behavior is in the crate::storage::StorageTxn trait.

Required Methods§

Source

fn txn<'a>(&'a mut self) -> Result<Box<dyn StorageTxn + 'a>, Error>

Begin a transaction

Implementors§