[−][src]Trait ntex::http::body::MessageBody
Type that provides this trait can be streamed to a peer.
Required methods
fn size(&self) -> BodySize
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
Implementations on Foreign Types
impl MessageBody for ()
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl<T: MessageBody> MessageBody for Box<T>
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for Bytes
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for BytesMut
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for &'static str
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for &'static [u8]
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for Vec<u8>
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl MessageBody for String
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
_: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
Implementors
impl MessageBody for Body
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl<B: MessageBody> MessageBody for ResponseBody<B>
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl<B: MessageBody> MessageBody for Encoder<B>
[src]
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
impl<S> MessageBody for SizedStream<S> where
S: Stream<Item = Result<Bytes, Box<dyn Error>>> + Unpin,
[src]
S: Stream<Item = Result<Bytes, Box<dyn Error>>> + Unpin,
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
Attempts to pull out the next value of the underlying Stream
.
Empty values are skipped to prevent SizedStream
's transmission being
ended on a zero-length chunk, but rather proceed until the underlying
Stream
ends.
impl<S, E> MessageBody for BodyStream<S, E> where
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Error + 'static,
[src]
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Error + 'static,
fn size(&self) -> BodySize
[src]
fn poll_next_chunk(
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
[src]
&mut self,
cx: &mut Context
) -> Poll<Option<Result<Bytes, Box<dyn Error>>>>
Attempts to pull out the next value of the underlying Stream
.
Empty values are skipped to prevent BodyStream
's transmission being
ended on a zero-length chunk, but rather proceed until the underlying
Stream
ends.