Struct lexa_framework::http::HttpContext
source · pub struct HttpContext<T> {
pub request: HttpRequest<T>,
pub response: HttpResponse<T>,
/* private fields */
}
Fields§
§request: HttpRequest<T>
§response: HttpResponse<T>
Trait Implementations§
source§impl<T> Deref for HttpContext<T>
impl<T> Deref for HttpContext<T>
source§impl<C, S> FromRequestParts<State<S>> for HttpContext<C>where
C: 'static + HttpContextInterface,
S: 'static + Send + Sync,
<C as HttpContextInterface>::State: Send + Sync + FromRef<State<S>>,
impl<C, S> FromRequestParts<State<S>> for HttpContext<C>where C: 'static + HttpContextInterface, S: 'static + Send + Sync, <C as HttpContextInterface>::State: Send + Sync + FromRef<State<S>>,
§type Rejection = HttpContextError
type Rejection = HttpContextError
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Auto Trait Implementations§
impl<T> RefUnwindSafe for HttpContext<T>where T: RefUnwindSafe,
impl<T> Send for HttpContext<T>where T: Send + Sync,
impl<T> Sync for HttpContext<T>where T: Send + Sync,
impl<T> Unpin for HttpContext<T>
impl<T> UnwindSafe for HttpContext<T>where T: RefUnwindSafe,
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
§impl<T, A> DynAccess<T> for Awhere
A: Access<T>,
<A as Access<T>>::Guard: 'static,
impl<T, A> DynAccess<T> for Awhere A: Access<T>, <A as Access<T>>::Guard: 'static,
§impl<S, B, T> FromRequest<S, B, ViaParts> for Twhere
B: Send + 'static,
S: Send + Sync,
T: FromRequestParts<S>,
impl<S, B, T> FromRequest<S, B, ViaParts> for Twhere B: Send + 'static, S: Send + Sync, T: FromRequestParts<S>,
§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.