Struct luminal_handler::HandlerService
[−]
[src]
pub struct HandlerService<H: Handler> { /* fields omitted */ }
An impl of hyper::Service
that consumes an impl of Handler
.
Methods
impl<H: Handler> HandlerService<H>
[src]
Trait Implementations
impl<H: Handler> Service for HandlerService<H>
[src]
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 = LuminalFuture
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> Send for HandlerService<H> where
H: Send,
H: Send,
impl<H> Sync for HandlerService<H> where
H: Sync,
H: Sync,