Struct tower_web::util::buf_stream::StdStream[][src]

pub struct StdStream<T>(_);

Wraps a futures::Stream that yields Buf values and provides a BufStream implementation.

Methods

impl<T> StdStream<T>
[src]

Create a new StdStream containing stream.

Trait Implementations

impl<T: Debug> Debug for StdStream<T>
[src]

Formats the value using the given formatter. Read more

impl<T> BufStream for StdStream<T> where
    T: Stream,
    T::Item: Buf
[src]

Values yielded by the BufStream.

The error type this BufStream might generate.

Attempt to pull out the next buffer of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more

Returns the bounds on the remaining length of the iterator. Read more

Takes two buf streams and creates a new buf stream over both in sequence. Read more

Consumes all data from self, storing it in byte storage of type T.

Auto Trait Implementations

impl<T> Send for StdStream<T> where
    T: Send

impl<T> Sync for StdStream<T> where
    T: Sync