Skip to main content

DatabaseProof

Trait DatabaseProof 

Source
pub trait DatabaseProof<'a> {
    type Tx;

    // Required method
    fn from_tx(tx: &'a Self::Tx) -> Self;
}
Expand description

Extends Proof with operations specific for working with a database transaction.

Required Associated Types§

Source

type Tx

Associated type for the database transaction.

Required Methods§

Source

fn from_tx(tx: &'a Self::Tx) -> Self

Create a new Proof instance from database transaction.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, TX: DbTx, A: TrieTableAdapter> DatabaseProof<'a> for Proof<DatabaseTrieCursorFactory<&'a TX, A>, DatabaseHashedCursorFactory<&'a TX>>

Source§

type Tx = TX

Source§

fn from_tx(tx: &'a Self::Tx) -> Self

Implementors§