Type Alias actix_http::BoxedPayloadStream
source · pub type BoxedPayloadStream = Pin<Box<dyn Stream<Item = Result<Bytes, PayloadError>>>>;
Expand description
A boxed payload stream.
Aliased Type§
struct BoxedPayloadStream { /* private fields */ }
Trait Implementations§
source§impl<T, B> MessageBody for Pin<T>where
T: DerefMut<Target = B> + Unpin,
B: MessageBody + ?Sized,
impl<T, B> MessageBody for Pin<T>where T: DerefMut<Target = B> + Unpin, B: MessageBody + ?Sized,
§type Error = <B as MessageBody>::Error
type Error = <B as MessageBody>::Error
The type of error that will be returned if streaming body fails. Read more
source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, Self::Error>>>
fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Result<Bytes, Self::Error>>>
Attempt to pull out the next chunk of body bytes. Read more