pub struct ContextualPayload<Ctx>where
Ctx: Send + 'static,{
pub inner: Request<Body>,
pub context: Ctx,
}
Expand description
This represents context provided as part of the request or the response
Fields§
§inner: Request<Body>
The inner payload for this request/response
context: Ctx
Request or Response Context
Trait Implementations§
Source§impl<Ctx> Debug for ContextualPayload<Ctx>
impl<Ctx> Debug for ContextualPayload<Ctx>
Source§impl<T, C> Service<ContextualPayload<C>> for AllowAllAuthenticator<T, C>
impl<T, C> Service<ContextualPayload<C>> for AllowAllAuthenticator<T, C>
Source§type Response = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Response
type Response = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Response
Responses given by the service.
Source§type Error = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Error
type Error = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Error
Errors produced by the service.
Source§type Future = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Future
type Future = <T as Service<ContextualPayload<<C as Push<Option<Authorization>>>::Result>>>::Future
The future response value.
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<Ctx> !Freeze for ContextualPayload<Ctx>
impl<Ctx> !RefUnwindSafe for ContextualPayload<Ctx>
impl<Ctx> Send for ContextualPayload<Ctx>
impl<Ctx> Sync for ContextualPayload<Ctx>where
Ctx: Sync,
impl<Ctx> Unpin for ContextualPayload<Ctx>where
Ctx: Unpin,
impl<Ctx> !UnwindSafe for ContextualPayload<Ctx>
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