Struct hyper_middleware::service::Service
source · pub struct Service<H> { /* private fields */ }Expand description
A [Hyper Service][hyper::service::Service] entry point which hosts a Handler.
Implementations
Trait Implementations
sourceimpl<H, T> Service<&T> for Service<H>where
H: Handler,
T: RemoteAddr + Send + 'static,
impl<H, T> Service<&T> for Service<H>where
H: Handler,
T: RemoteAddr + Send + 'static,
type Response = HandlerService<H>
type Response = HandlerService<H>
Responses given by the service.
type Error = Infallible
type Error = Infallible
Errors produced by the service.
type Future = Ready<Result<<Service<H> as Service<&T>>::Response, <Service<H> as Service<&T>>::Error>>
type Future = Ready<Result<<Service<H> as Service<&T>>::Response, <Service<H> as Service<&T>>::Error>>
The future response value.
Auto Trait Implementations
impl<H> RefUnwindSafe for Service<H>where
H: RefUnwindSafe,
impl<H> Send for Service<H>where
H: Send + Sync,
impl<H> Sync for Service<H>where
H: Send + Sync,
impl<H> Unpin for Service<H>
impl<H> UnwindSafe for Service<H>where
H: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more