pub struct StateGuard<Guard, Args, Error> { /* private fields */ }Implementations§
Source§impl<Guard, Args, Error> StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> StateGuard<Guard, Args, Error>
Trait Implementations§
Source§impl<Service, Body, Guard, Args, Error> Transform<Service, ServiceRequest> for StateGuard<Guard, Args, Error>where
Service: ServiceTrait<ServiceRequest, Response = ServiceResponse<Body>, Error = Error> + 'static,
Body: MessageBody,
Guard: GuardTrait<Args, Error>,
Error: ResponseError + 'static,
Args: FromRequest,
impl<Service, Body, Guard, Args, Error> Transform<Service, ServiceRequest> for StateGuard<Guard, Args, Error>where
Service: ServiceTrait<ServiceRequest, Response = ServiceResponse<Body>, Error = Error> + 'static,
Body: MessageBody,
Guard: GuardTrait<Args, Error>,
Error: ResponseError + 'static,
Args: FromRequest,
Source§type Response = <StateGuardMiddleware<Service, Guard, Args, Error> as Service<ServiceRequest>>::Response
type Response = <StateGuardMiddleware<Service, Guard, Args, Error> as Service<ServiceRequest>>::Response
Responses produced by the service.
Source§type Error = <StateGuardMiddleware<Service, Guard, Args, Error> as Service<ServiceRequest>>::Error
type Error = <StateGuardMiddleware<Service, Guard, Args, Error> as Service<ServiceRequest>>::Error
Errors produced by the service.
Source§type Transform = StateGuardMiddleware<Service, Guard, Args, Error>
type Transform = StateGuardMiddleware<Service, Guard, Args, Error>
The
TransformService value created by this factorySource§type Future = Ready<Result<<StateGuard<Guard, Args, Error> as Transform<Service, ServiceRequest>>::Transform, <StateGuard<Guard, Args, Error> as Transform<Service, ServiceRequest>>::InitError>>
type Future = Ready<Result<<StateGuard<Guard, Args, Error> as Transform<Service, ServiceRequest>>::Transform, <StateGuard<Guard, Args, Error> as Transform<Service, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: Service) -> Self::Future
fn new_transform(&self, service: Service) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl<Guard, Args, Error> Freeze for StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> RefUnwindSafe for StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> !Send for StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> !Sync for StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> Unpin for StateGuard<Guard, Args, Error>
impl<Guard, Args, Error> UnwindSafe for StateGuard<Guard, Args, Error>
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