Struct dubbo::triple::encode::EncodeBody
source · pub struct EncodeBody<S> { /* private fields */ }
Implementations§
source§impl<S> EncodeBody<S>
impl<S> EncodeBody<S>
pub fn new_server(inner: S) -> Self
pub fn new_client(inner: S) -> Self
Trait Implementations§
source§impl<S> Body for EncodeBody<S>where
S: Stream<Item = Result<Bytes, Status>>,
impl<S> Body for EncodeBody<S>where S: Stream<Item = Result<Bytes, Status>>,
source§fn is_end_stream(&self) -> bool
fn is_end_stream(&self) -> bool
Returns
true
when the end of stream has been reached. Read moresource§fn poll_data(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Self::Data, Self::Error>>>
fn poll_data( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Result<Self::Data, Self::Error>>>
Attempt to pull out the next data buffer of this stream.
source§fn poll_trailers(
self: Pin<&mut Self>,
_cx: &mut Context<'_>
) -> Poll<Result<Option<HeaderMap>, Self::Error>>
fn poll_trailers( self: Pin<&mut Self>, _cx: &mut Context<'_> ) -> Poll<Result<Option<HeaderMap>, Self::Error>>
Poll for an optional single
HeaderMap
of trailers. Read moresource§fn size_hint(&self) -> SizeHint
fn size_hint(&self) -> SizeHint
Returns the bounds on the remaining length of the stream. Read more