ContentDigest

Trait ContentDigest 

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

Provided Methods§

Source

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

Returns the bytes object of the body

Source

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,

Returns the content digest in base64

Implementors§

Source§

impl<T> ContentDigest for T
where T: Body + ?Sized,