pub trait DatastoreAdapter {
type Transaction: SimpleTransaction;
// Required methods
fn transaction(&self, rw: bool) -> Result<Self::Transaction, Error>;
fn default() -> Self;
fn spawn(&self) -> Self;
}
Required Associated Types§
Required Methods§
fn transaction(&self, rw: bool) -> Result<Self::Transaction, Error>
fn default() -> Self
fn spawn(&self) -> Self
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.