Struct hyper_simple_server::HandlerFnSync[][src]

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

Trait Implementations

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

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

type Future = Ready<ServerResult<Response<RB>>>

type ResponseBody = RB

type ResponseBodyError = RB::Error

Auto Trait Implementations

impl<C, RB> RefUnwindSafe for HandlerFnSync<C, RB> where
    C: RefUnwindSafe

impl<C, RB> Send for HandlerFnSync<C, RB>

impl<C, RB> Sync for HandlerFnSync<C, RB>

impl<C, RB> Unpin for HandlerFnSync<C, RB> where
    C: Unpin

impl<C, RB> UnwindSafe for HandlerFnSync<C, RB> where
    C: 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<!> for T[src]

impl<T> From<T> 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.