Skip to main content

HashableContentExtAsync

Trait HashableContentExtAsync 

Source
pub trait HashableContentExtAsync<'a, T>: HashableContent
where T: HashTypeAsync,
{ // Required methods fn to_hash(&self) -> MustBoxFuture<'_, HoloHash<T>>; fn into_hashed(self) -> MustBoxFuture<'a, HoloHashed<Self>>; }
Expand description

Adds convenience methods for constructing HoloHash and HoloHashed from some HashableContent

Required Methods§

Source

fn to_hash(&self) -> MustBoxFuture<'_, HoloHash<T>>

Construct a HoloHash from a reference

Source

fn into_hashed(self) -> MustBoxFuture<'a, HoloHashed<Self>>

Move into a HoloHashed

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, T, C> HashableContentExtAsync<'a, T> for C
where T: HashTypeAsync, C: 'a + HashableContent<HashType = T> + Send + Sync,