Trait tc_transact::hash::AsyncHash

source ·
pub trait AsyncHash: Send + Sync {
    // Required method
    fn hash<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
    ) -> 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 Methods§

source

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

Compute the hash of this state as of a given TxnId

Implementations on Foreign Types§

source§

impl<T: AsyncHash> AsyncHash for Map<T>

source§

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

source§

impl<T: AsyncHash> AsyncHash for Tuple<T>

source§

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

Implementors§