Struct sylvia_iot_data::routes::middleware::AuthService
source · pub struct AuthService { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<S> Transform<S, ServiceRequest> for AuthServicewhere
S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static,
S::Future: 'static,
impl<S> Transform<S, ServiceRequest> for AuthServicewhere S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static, S::Future: 'static,
§type Response = ServiceResponse<BoxBody>
type Response = ServiceResponse<BoxBody>
Responses produced by the service.
§type Transform = AuthMiddleware<S>
type Transform = AuthMiddleware<S>
The
TransformService
value created by this factory§type Future = Ready<Result<<AuthService as Transform<S, ServiceRequest>>::Transform, <AuthService as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<AuthService as Transform<S, ServiceRequest>>::Transform, <AuthService as Transform<S, ServiceRequest>>::InitError>>
The future response value.
source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously