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§
async fn db(&self) -> Result<Self::DB, Error>
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".