BodyDecode

Trait BodyDecode 

Source
pub trait BodyDecode: Decode {
    // Provided method
    fn initialize(&mut self, header: &Header<'_>) -> Result<()> { ... }
}
Expand description

BodyDecode is used for representing HTTP body decoders.

Provided Methods§

Source

fn initialize(&mut self, header: &Header<'_>) -> Result<()>

This method is called before starting to decode a HTTP body.

The default implementation does nothing.

Implementations on Foreign Types§

Source§

impl<'a, T: ?Sized + BodyDecode> BodyDecode for &'a mut T

Source§

fn initialize(&mut self, header: &Header<'_>) -> Result<()>

Source§

impl<T: ?Sized + BodyDecode> BodyDecode for Box<T>

Source§

fn initialize(&mut self, header: &Header<'_>) -> Result<()>

Implementors§