Trait httpcodec::BodyDecode
[−]
[src]
pub trait BodyDecode: Decode { fn initialize(&mut self, header: &Header) -> Result<()> { ... } }
BodyDecode
is used for representing HTTP body decoders.
Provided Methods
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
impl<'a, T: ?Sized + BodyDecode> BodyDecode for &'a mut T
[src]
fn initialize(&mut self, header: &Header) -> Result<()>
[src]
impl<T: ?Sized + BodyDecode> BodyDecode for Box<T>
[src]
fn initialize(&mut self, header: &Header) -> Result<()>
[src]
Implementors
impl BodyDecode for NoBodyDecoder
impl<D: Decode> BodyDecode for BodyDecoder<D>