Struct sylvia_iot_data::routes::middleware::AuthMiddleware
source · pub struct AuthMiddleware<S> { /* private fields */ }
Trait Implementations§
source§impl<S> Service<ServiceRequest> for AuthMiddleware<S>where
S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static,
S::Future: 'static,
impl<S> Service<ServiceRequest> for AuthMiddleware<S>where S: Service<ServiceRequest, Response = ServiceResponse<BoxBody>, Error = Error> + 'static, S::Future: 'static,
§type Response = ServiceResponse<BoxBody>
type Response = ServiceResponse<BoxBody>
Responses given by the service.
§type Future = Pin<Box<dyn Future<Output = Result<<AuthMiddleware<S> as Service<ServiceRequest>>::Response, <AuthMiddleware<S> as Service<ServiceRequest>>::Error>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<<AuthMiddleware<S> as Service<ServiceRequest>>::Response, <AuthMiddleware<S> as Service<ServiceRequest>>::Error>> + 'static, Global>>
The future response value.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for AuthMiddleware<S>
impl<S> !Send for AuthMiddleware<S>
impl<S> !Sync for AuthMiddleware<S>
impl<S> Unpin for AuthMiddleware<S>
impl<S> !UnwindSafe for AuthMiddleware<S>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<S, Req> IntoService<S, Req> for Swhere
S: Service<Req>,
impl<S, Req> IntoService<S, Req> for Swhere S: Service<Req>,
source§fn into_service(self) -> S
fn into_service(self) -> S
Convert to a
Service
source§impl<S, Req> ServiceExt<Req> for Swhere
S: Service<Req>,
impl<S, Req> ServiceExt<Req> for Swhere S: Service<Req>,
source§fn map<F, R>(self, f: F) -> Map<Self, F, Req, R>where
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map<F, R>(self, f: F) -> Map<Self, F, Req, R>where Self: Sized, F: FnMut(Self::Response) -> R,
Map this service’s output to a different type, returning a new service
of the resulting type. Read more