ContentDigest

Trait ContentDigest 

Source
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§

Source

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

Source

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

Implementations on Foreign Types§

Source§

impl<B> ContentDigest for Request<B>
where B: Body + Send, B::Data: Send,

Source§

impl<B> ContentDigest for Response<B>
where B: Body + Send, B::Data: Send,

Implementors§