Struct http_body::Full[][src]

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

A body that consists of a single chunk.

Implementations

impl<D> Full<D> where
    D: Buf
[src]

pub fn new(data: D) -> Self[src]

Create a new Full.

Trait Implementations

impl<D> Body for Full<D> where
    D: Buf
[src]

type Data = D

Values yielded by the Body.

type Error = Infallible

The error type this Body might generate.

impl<D: Clone> Clone for Full<D>[src]

impl<D: Debug> Debug for Full<D>[src]

impl<D> Default for Full<D> where
    D: Buf
[src]

fn default() -> Self[src]

Create an empty Full.

impl<D> From<&'static [u8]> for Full<D> where
    D: Buf + From<&'static [u8]>, 
[src]

impl<D> From<&'static str> for Full<D> where
    D: Buf + From<&'static str>, 
[src]

impl<D> From<Bytes> for Full<D> where
    D: Buf + From<Bytes>, 
[src]

impl<D, B: ?Sized> From<Cow<'static, B>> for Full<D> where
    D: Buf + From<&'static B> + From<B::Owned>,
    B: ToOwned
[src]

impl<D> From<String> for Full<D> where
    D: Buf + From<String>, 
[src]

impl<D> From<Vec<u8, Global>> for Full<D> where
    D: Buf + From<Vec<u8>>, 
[src]

impl<D: Copy> Copy for Full<D>[src]

impl<'__pin, D> Unpin for Full<D> where
    __Origin<'__pin, D>: Unpin
[src]

Auto Trait Implementations

impl<D> RefUnwindSafe for Full<D> where
    D: RefUnwindSafe

impl<D> Send for Full<D> where
    D: Send

impl<D> Sync for Full<D> where
    D: Sync

impl<D> UnwindSafe for Full<D> where
    D: UnwindSafe

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.