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

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

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

impl<T> Erased for T