pub trait ContentDigest {
type Error;
type Content;
// Required methods
fn digest<H: ContentHasher>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
where Self: Sized;
fn verify_digest<H: ContentHasher>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Send
where Self: Sized;
}Required Associated Types§
Required Methods§
fn digest<H: ContentHasher>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Sendwhere
Self: Sized,
fn verify_digest<H: ContentHasher>(
self,
) -> impl Future<Output = Result<Self::Content, Self::Error>> + Sendwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".