Struct unit_rs::HttpMiddleware
source · [−]pub struct HttpMiddleware<H: HttpService>(_);Available on crate feature
http only.Expand description
Adapter middleware to use types from the http crate.
The inner request handler must implement the HttpService trait.
Implementations
sourceimpl<H: HttpService> HttpMiddleware<H>
impl<H: HttpService> HttpMiddleware<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for HttpMiddleware<H> where
H: RefUnwindSafe,
impl<H> Send for HttpMiddleware<H> where
H: Send,
impl<H> Sync for HttpMiddleware<H> where
H: Sync,
impl<H> Unpin for HttpMiddleware<H> where
H: Unpin,
impl<H> UnwindSafe for HttpMiddleware<H> where
H: UnwindSafe,
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