Trait tc_transact::AsyncHash
source · 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§
sourcetype Txn: Transaction<D>
type Txn: Transaction<D>
The type of Transaction
which this state supports