pub struct HttpHandler<H: HttpService>(/* private fields */);Available on crate feature
http only.Expand description
Adapter to use types from the http crate.
The inner request handler must implement the HttpService trait.
Implementations§
Source§impl<H: HttpService> HttpHandler<H>
impl<H: HttpService> HttpHandler<H>
Trait Implementations§
Source§impl<H: HttpService + RefUnwindSafe> UnitService for HttpHandler<H>
impl<H: HttpService + RefUnwindSafe> UnitService for HttpHandler<H>
fn handle_request(&mut self, req: Request<'_>) -> UnitResult<()>
Auto Trait Implementations§
impl<H> Freeze for HttpHandler<H>where
H: Freeze,
impl<H> RefUnwindSafe for HttpHandler<H>where
H: RefUnwindSafe,
impl<H> Send for HttpHandler<H>where
H: Send,
impl<H> Sync for HttpHandler<H>where
H: Sync,
impl<H> Unpin for HttpHandler<H>where
H: Unpin,
impl<H> UnwindSafe for HttpHandler<H>
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