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]
E: IntoResponse,
H: Handler<E>,
Trait Implementations
impl<H, E> Service for HandlerService<H, E> where
E: IntoResponse,
H: Handler<E>,
[src]
E: IntoResponse,
H: Handler<E>,
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Response, Error = Error>>
The future response value.
fn call(&self, request: Request) -> Self::Future
[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,
E: Send,
H: Send,
impl<H, E> Sync for HandlerService<H, E> where
E: Sync,
H: Sync,
E: Sync,
H: Sync,