[][src]Struct actix_http::body::SizedStream

pub struct SizedStream<S> { /* fields omitted */ }

Type represent streaming body. This body implementation should be used if total size of stream is known. Data get sent as is without using transfer encoding.

Methods

impl<S> SizedStream<S> where
    S: Stream<Item = Bytes, Error = Error>, 
[src]

pub fn new(size: usize, stream: S) -> Self[src]

Trait Implementations

impl<S> MessageBody for SizedStream<S> where
    S: Stream<Item = Bytes, Error = Error>, 
[src]

Auto Trait Implementations

impl<S> Send for SizedStream<S> where
    S: Send

impl<S> Sync for SizedStream<S> where
    S: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T