Skip to main content

BodyStream

Trait BodyStream 

Source
pub trait BodyStream: Body<Data: Into<Bytes> + AsRef<[u8]> + 'static, Error: Into<BodyError>> { }
Expand description

an extended trait for [Stream] that specify additional type info of the [Stream::Item] type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<B> BodyStream for B
where B: Body, B::Data: Into<Bytes> + AsRef<[u8]> + 'static, B::Error: Into<BodyError>,