pub trait AsyncHash<D: Dir> {
    type Txn: Transaction<D>;

    fn hash<'life0, 'async_trait>(
        self,
        txn: &'life0 Self::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; }
Expand description

Defines a method to compute the hash of this state as of a given TxnId

Required Associated Types§

The type of Transaction which this state supports

Required Methods§

Compute the hash of this state as of a given TxnId

Implementors§