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

pub struct Empty<Item, Error>(_);

A BufStream that contains no data.

Methods

impl<Item, Error> Empty<Item, Error>
[src]

Create a new Empty instance.

Trait Implementations

impl<Item: Debug, Error: Debug> Debug for Empty<Item, Error>
[src]

Formats the value using the given formatter. Read more

impl<Item: Copy, Error: Copy> Copy for Empty<Item, Error>
[src]

impl<Item: Clone, Error: Clone> Clone for Empty<Item, Error>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Item, Error> Default for Empty<Item, Error>
[src]

Returns the "default value" for a type. Read more

impl<Item, Error> BufStream for Empty<Item, Error> where
    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<Item, Error> Send for Empty<Item, Error> where
    Error: Send,
    Item: Send

impl<Item, Error> Sync for Empty<Item, Error> where
    Error: Sync,
    Item: Sync