Trait tc_transact::fs::Hash [−][src]
pub trait Hash<'en, D: Dir> { type Item: IntoStream<'en> + Send + 'en; type Txn: Transaction<D>; #[must_use] fn hashable<'async_trait>(
&'en self,
txn: &'en Self::Txn
) -> Pin<Box<dyn Future<Output = TCResult<TCTryStream<'en, Self::Item>>> + Send + 'async_trait>>
where
'en: 'async_trait,
Self: 'async_trait; #[must_use] 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, { ... } #[must_use] 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
type Item: IntoStream<'en> + Send + 'en
[src]
type Txn: Transaction<D>
[src]
Required methods
#[must_use]fn hashable<'async_trait>(
&'en self,
txn: &'en Self::Txn
) -> Pin<Box<dyn Future<Output = TCResult<TCTryStream<'en, Self::Item>>> + Send + 'async_trait>> where
'en: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn hashable<'async_trait>(&'en self,
txn: &'en Self::Txn
) -> Pin<Box<dyn Future<Output = TCResult<TCTryStream<'en, Self::Item>>> + Send + 'async_trait>> where
'en: 'async_trait,
Self: 'async_trait,
Provided methods
#[must_use]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,
[src]
#[must_use]
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,
#[must_use]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,
[src]
#[must_use]
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,