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§
Sourcefn crypto_hash(
&self,
) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send
fn crypto_hash( &self, ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send
Computing the hash and attributing the type to it. May require locking.
Sourcefn crypto_hash_mut(
&mut self,
) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send
fn crypto_hash_mut( &mut self, ) -> impl Future<Output = Result<CryptoHash, ViewError>> + Send
Same as crypto_hash but guaranteed to be wait-free.
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.