Skip to main content

BodyDigest

Trait BodyDigest 

Source
pub trait BodyDigest: 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>(
        self,
    ) -> impl Future<Output = Result<DigestWithContent, Self::Error>> + Send
       where H: ContentHasher,
             Self: Sized + Send,
             Self::Data: Send { ... }
}

Provided Methods§

Source

fn into_bytes(self) -> impl Future<Output = Result<Bytes, Self::Error>> + Send
where Self: Sized + Send, Self::Data: Send,

Source

fn digest<H>( self, ) -> impl Future<Output = Result<DigestWithContent, Self::Error>> + Send
where H: ContentHasher, Self: Sized + Send, Self::Data: Send,

Implementors§

Source§

impl<T> BodyDigest for T
where T: Body,