Trait CryptoHashView

Source
pub trait CryptoHashView: HashableView + Send {
    // Required methods
    fn crypto_hash(
        &self,
    ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send;
    fn crypto_hash_mut(
        &mut self,
    ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send;
}
Expand description

A View that also supports crypto hash

Required Methods§

Source

fn crypto_hash( &self, ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send

Computing the hash and attributing the type to it.

Source

fn crypto_hash_mut( &mut self, ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send

Computing the hash and attributing the type to it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§