pub struct DropContextService<T, C> { /* private fields */ }
Expand description
Swagger Middleware that wraps a hyper::service::Service
, and drops any contextual information
on the request. Services will normally want to use DropContextMakeService
, which will create
a DropContextService
to handle each connection.
Implementations§
Source§impl<T, C> DropContextService<T, C>
impl<T, C> DropContextService<T, C>
Trait Implementations§
Source§impl<T, C> Service<ContextualPayload<C>> for DropContextService<T, C>
impl<T, C> Service<ContextualPayload<C>> for DropContextService<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for DropContextService<T, C>where
T: Freeze,
impl<T, C> RefUnwindSafe for DropContextService<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for DropContextService<T, C>
impl<T, C> Sync for DropContextService<T, C>
impl<T, C> Unpin for DropContextService<T, C>
impl<T, C> UnwindSafe for DropContextService<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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