Struct luminal_handler::HandlerService [] [src]

pub struct HandlerService<H, E> where
    E: IntoResponse,
    H: Handler<E>, 
{ /* fields omitted */ }

An impl of hyper::Service that consumes an impl of Handler.

Methods

impl<H, E> HandlerService<H, E> where
    E: IntoResponse,
    H: Handler<E>, 
[src]

[src]

Trait Implementations

impl<H, E> Service for HandlerService<H, E> where
    E: IntoResponse,
    H: Handler<E>, 
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

[src]

Dispatches to the owned Handler, marshalling success or error into the response.

Auto Trait Implementations

impl<H, E> Send for HandlerService<H, E> where
    E: Send,
    H: Send

impl<H, E> Sync for HandlerService<H, E> where
    E: Sync,
    H: Sync