pub trait Storage: Sync + Send + Clone + 'static {
type TransactionType: Transaction;
// Required method
async fn transaction(&self) -> Result<Self::TransactionType, StorageError>;
}
Required Associated Types§
Required Methods§
async fn transaction(&self) -> Result<Self::TransactionType, StorageError>
Object Safety§
This trait is not object safe.