pub fn from_bytes_stream<S, O, E>(stream: S) -> Self
    where
        S: Stream<Item = Result<O, E>> + Send + 'static,
        O: Into<Bytes> + 'static,
        E: std::error::Error + Send + Sync + 'static,
    {
        Self(hyper::Body::wrap_stream(stream))
    }
/// Create a body object from bytes stream.
Create a body object from bytes stream.
Create a body object from bytes stream .
pub fn from_bytes_stream<S, O, E>(stream: S) -> Self
    where
        S: Stream<Item = Result<O, E>> + Send + 'static,
        O: Into<Bytes> + 'static,
        E: std::error::Error + Send + Sync + 'static,
    {
        Self(hyper::Body::wrap_stream(stream))
    }
pub fn from_bytes_stream < S , O , E > ( stream : S ) -> Self where S : Stream < Item = Result < O , E > > + Send + ' static , O : Into < Bytes > + ' static , E : std :: error :: Error + Send + Sync + ' static , { Self ( hyper :: Body :: wrap_stream ( stream ) ) }
Create a body object from bytes stream.
Create a body object from bytes stream .
stream
S