Skip to main content

ContentDigest

Trait ContentDigest 

Source
pub trait ContentDigest {
    type Error;
    type Content;

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

Required Associated Types§

Required Methods§

Source

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

Source

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

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§