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 { ... }
}