Struct hyper_simple_server::HandlerFnAsync[][src]

pub struct HandlerFnAsync<C, F, RB> where
    C: Fn(Request<Body>) -> F + Send + Sync + 'static,
    F: Future<Output = ServerResult<Response<RB>>> + Send + 'static,
    RB: BodyTrait<Data = Bytes> + Send + 'static,
    RB::Error: Error + Send + Sync + 'static, 
{ /* fields omitted */ }

Trait Implementations

impl<C, F, RB> From<C> for HandlerFnAsync<C, F, RB> where
    C: Fn(Request<Body>) -> F + Send + Sync + 'static,
    F: Future<Output = ServerResult<Response<RB>>> + Send + 'static,
    RB: BodyTrait<Data = Bytes> + Send + 'static,
    RB::Error: Error + Send + Sync + 'static, 
[src]

impl<C, F, RB> Handler for HandlerFnAsync<C, F, RB> where
    C: Fn(Request<Body>) -> F + Send + Sync + 'static,
    F: Future<Output = ServerResult<Response<RB>>> + Send + 'static,
    RB: BodyTrait<Data = Bytes> + Send + 'static,
    RB::Error: Error + Send + Sync + 'static, 
[src]

type Future = F

type ResponseBody = RB

type ResponseBodyError = RB::Error

Auto Trait Implementations

impl<C, F, RB> RefUnwindSafe for HandlerFnAsync<C, F, RB> where
    C: RefUnwindSafe
[src]

impl<C, F, RB> Send for HandlerFnAsync<C, F, RB>[src]

impl<C, F, RB> Sync for HandlerFnAsync<C, F, RB>[src]

impl<C, F, RB> Unpin for HandlerFnAsync<C, F, RB> where
    C: Unpin
[src]

impl<C, F, RB> UnwindSafe for HandlerFnAsync<C, F, RB> where
    C: 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<!> for T[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.