Trait IntoBodyReader

Source
pub trait IntoBodyReader<BodyT>: Sized {
    // Required method
    fn into_reader_with_first_bytes(
        self,
        first_bytes: Option<Bytes>,
    ) -> BodyReader<BodyT>;

    // Provided method
    fn into_reader(self) -> BodyReader<BodyT> { ... }
}
Expand description

Into BodyReader.

Required Methods§

Source

fn into_reader_with_first_bytes( self, first_bytes: Option<Bytes>, ) -> BodyReader<BodyT>

Into BodyReader.

Provided Methods§

Source

fn into_reader(self) -> BodyReader<BodyT>

Into BodyReader.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<BodyT> IntoBodyReader<BodyT> for BodyT
where BodyT: Body, BodyT::Error: Into<CapturedError>,