Trait DatastoreAdapter

Source
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§

Source

fn transaction(&self, rw: bool) -> Result<Self::Transaction, Error>

Source

fn default() -> Self

Source

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.

Implementors§