pub trait Datastore {
type Transaction<'a>: Transaction<'a>
where Self: 'a;
// Required method
fn transaction(&self) -> Self::Transaction<'_>;
}
Expand description
Specifies a datastore, which provides datastore transaction implementations to the database.
Required Associated Types§
Sourcetype Transaction<'a>: Transaction<'a>
where
Self: 'a
type Transaction<'a>: Transaction<'a> where Self: 'a
The datastore transaction type.
Required Methods§
Sourcefn transaction(&self) -> Self::Transaction<'_>
fn transaction(&self) -> Self::Transaction<'_>
Creates a new transaction.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.