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§
Sourcefn into_reader_with_first_bytes(
self,
first_bytes: Option<Bytes>,
) -> BodyReader<BodyT>
fn into_reader_with_first_bytes( self, first_bytes: Option<Bytes>, ) -> BodyReader<BodyT>
Into BodyReader.
Provided Methods§
Sourcefn into_reader(self) -> BodyReader<BodyT>
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.