pub trait Storage: Send + Sync {
// Required method
fn txn<'life0, 'async_trait>(
&'life0 self,
client_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn StorageTxn + '_>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait for objects able to act as storage. Most of the interesting behavior is in the
crate::storage::StorageTxn
trait.