pub trait ContentDigest: Body {
// Provided methods
fn into_bytes(
self,
) -> impl Future<Output = Result<Bytes, Self::Error>> + Send
where Self: Sized + Send,
Self::Data: Send { ... }
fn into_bytes_with_digest(
self,
cd_type: &ContentDigestType,
) -> impl Future<Output = Result<(Bytes, String), Self::Error>> + Send
where Self: Sized + Send,
Self::Data: Send { ... }
}Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".