Skip to main content

QueryNode

Trait QueryNode 

Source
pub trait QueryNode {
    type DB: Database;

    // Required methods
    async fn db(&self) -> Result<Self::DB, Error>;
    async fn db_as_of(&self, tx_key: TxKey) -> Result<Self::DB, Error>;
}

Required Associated Types§

Required Methods§

Source

async fn db(&self) -> Result<Self::DB, Error>

Source

async fn db_as_of(&self, tx_key: TxKey) -> Result<Self::DB, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§