Struct http_body::Empty[][src]

pub struct Empty<D> { /* fields omitted */ }

A body that is always empty.

Implementations

impl<D> Empty<D>[src]

pub fn new() -> Self[src]

Create a new Empty.

Trait Implementations

impl<D: Buf> Body for Empty<D>[src]

type Data = D

Values yielded by the Body.

type Error = Infallible

The error type this Body might generate.

impl<D> Clone for Empty<D>[src]

impl<D> Copy for Empty<D>[src]

impl<D> Debug for Empty<D>[src]

impl<D> Default for Empty<D>[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for Empty<D>

impl<D> Send for Empty<D>

impl<D> Sync for Empty<D>

impl<D> Unpin for Empty<D>

impl<D> UnwindSafe for Empty<D>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.