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