Struct actix_state_guards::StateGuard
source · 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 = ActixWebError> + '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 = ActixWebError> + 'static, Body: MessageBody, Guard: GuardTrait<Args, Error>, Error: ResponseError + 'static, Args: FromRequest,
§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.
§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.
§type Transform = StateGuardMiddleware<Service, Guard, Args, Error>
type Transform = StateGuardMiddleware<Service, Guard, Args, Error>
The
TransformService
value created by this factory§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