Trait tc_transact::fs::Hash[][src]

pub trait Hash<'en, D: Dir> {
    type Item: IntoStream<'en> + Send + 'en;
    type Txn: Transaction<D>;
    fn hashable<'async_trait>(
        &'en self,
        txn: &'en Self::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<TCBoxTryStream<'en, Self::Item>>> + Send + 'async_trait>>
    where
        'en: 'async_trait,
        Self: 'async_trait
; fn hash_hex<'async_trait>(
        &'en self,
        txn: &'en Self::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<String>> + Send + 'async_trait>>
    where
        'en: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn hash<'async_trait>(
        &'en self,
        txn: &'en Self::Txn
    ) -> Pin<Box<dyn Future<Output = TCResult<Bytes>> + Send + 'async_trait>>
    where
        'en: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }
Expand description

Defines a standard hash for a persistent state.

Associated Types

Required methods

Return a stream of hashable items which this state comprises, in a consistent order.

Provided methods

Return the SHA256 hash of this state as a hexadecimal string.

Compute the SHA256 hash of this state.

Implementors