Struct unit_rs::http::HttpHandler
source · [−]pub struct HttpHandler<H: HttpService>(_);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
sourceimpl<H: HttpService> HttpHandler<H>
impl<H: HttpService> HttpHandler<H>
Trait Implementations
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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