pub trait AsyncHash {
    // Required method
    fn hash<'async_trait>(
        self,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

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

Required Methods§

source

fn hash<'async_trait>( self, txn_id: TxnId ) -> Pin<Box<dyn Future<Output = TCResult<Output<Sha256>>> + Send + 'async_trait>>
where Self: 'async_trait,

Compute the hash of this state as of a given TxnId

Implementors§