Struct hyper_simple_server::BodyWrapper[][src]

pub struct BodyWrapper<B>(_)
where
    B: BodyTrait<Data = Bytes> + Send + 'static + Unpin,
    B::Error: Error + Send + Sync + 'static
;

Implementations

impl<B> BodyWrapper<B> where
    B: BodyTrait<Data = Bytes> + Send + 'static + Unpin,
    B::Error: Error + Send + Sync + 'static, 
[src]

pub fn new(_body: B) -> Self[src]

Trait Implementations

impl<B> Body for BodyWrapper<B> where
    B: BodyTrait<Data = Bytes> + Send + 'static + Unpin,
    B::Error: Error + Send + Sync + 'static, 
[src]

type Data = Bytes

Values yielded by the Body.

type Error = ServerError

The error type this Body might generate.

Auto Trait Implementations

impl<B> RefUnwindSafe for BodyWrapper<B> where
    B: RefUnwindSafe
[src]

impl<B> Send for BodyWrapper<B>[src]

impl<B> Sync for BodyWrapper<B> where
    B: Sync
[src]

impl<B> Unpin for BodyWrapper<B>[src]

impl<B> UnwindSafe for BodyWrapper<B> where
    B: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.