[−][src]Struct actix_http::body::BodyStream
Type represent streaming body.
Response does not contain content-length
header and appropriate transfer encoding is used.
Implementations
impl<S, E> BodyStream<S, E> where
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Into<Error>,
[src]
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Into<Error>,
Trait Implementations
impl<S, E> From<BodyStream<S, E>> for Body where
S: Stream<Item = Result<Bytes, E>> + Unpin + 'static,
E: Into<Error> + 'static,
[src]
S: Stream<Item = Result<Bytes, E>> + Unpin + 'static,
E: Into<Error> + 'static,
fn from(s: BodyStream<S, E>) -> Body
[src]
impl<S, E> MessageBody for BodyStream<S, E> where
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Into<Error>,
[src]
S: Stream<Item = Result<Bytes, E>> + Unpin,
E: Into<Error>,
fn size(&self) -> BodySize
[src]
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, Error>>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Result<Bytes, 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.
impl<'pin, S: Unpin, E> Unpin for BodyStream<S, E> where
__BodyStream<'pin, S, E>: Unpin,
[src]
__BodyStream<'pin, S, E>: Unpin,
Auto Trait Implementations
impl<S, E> RefUnwindSafe for BodyStream<S, E> where
E: RefUnwindSafe,
S: RefUnwindSafe,
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, E> Send for BodyStream<S, E> where
E: Send,
S: Send,
E: Send,
S: Send,
impl<S, E> Sync for BodyStream<S, E> where
E: Sync,
S: Sync,
E: Sync,
S: Sync,
impl<S, E> UnwindSafe for BodyStream<S, E> where
E: UnwindSafe,
S: UnwindSafe,
E: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,