pub struct Service<H> { /* private fields */ }
Expand description
A Hyper Service entry point which hosts a Handler
.
Implementations§
Trait Implementations§
Source§impl<H, T> Service<&T> for Service<H>
impl<H, T> Service<&T> for Service<H>
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§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> Freeze for Service<H>
impl<H> RefUnwindSafe for Service<H>where
H: RefUnwindSafe,
impl<H> Send for Service<H>
impl<H> Sync for Service<H>
impl<H> Unpin for Service<H>
impl<H> UnwindSafe for Service<H>where
H: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more