Skip to main content

Datastore

Trait Datastore 

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

Source

type Transaction<'a>: Transaction<'a> where Self: 'a

The datastore transaction type.

Required Methods§

Source

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".

Implementors§

Source§

impl Datastore for MemoryDatastore

Source§

type Transaction<'a> = MemoryTransaction<'a>