Struct actix_web_security::authentication::middleware::HttpAuthenticationService [−][src]
pub struct HttpAuthenticationService<S, T: AuthorizationHeaderExtractor + Clone, U: EndpointMatcher + Clone> { /* fields omitted */ }
The HttpAuthenticationService
executes the authentication process (header extraction, authentication, error handling).
Trait Implementations
impl<S, B, T, U> Service for HttpAuthenticationService<S, T, U> where
U: EndpointMatcher + Clone,
T: AuthorizationHeaderExtractor + Clone + 'static,
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
[src]
impl<S, B, T, U> Service for HttpAuthenticationService<S, T, U> where
U: EndpointMatcher + Clone,
T: AuthorizationHeaderExtractor + Clone + 'static,
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
[src]type Request = ServiceRequest
Requests handled by the service.
type Response = ServiceResponse<B>
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Error>>>>
The future response value.
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Self::Request) -> Self::Future
[src]
pub fn map<F, R>(self, f: F) -> Map<Self, F, R> where
F: FnMut(Self::Response) -> R,
F: FnMut(Self::Response) -> R,
pub fn map_err<F, E>(self, f: F) -> MapErr<Self, F, E> where
F: Fn(Self::Error) -> E,
F: Fn(Self::Error) -> E,
Auto Trait Implementations
impl<S, T, U> !RefUnwindSafe for HttpAuthenticationService<S, T, U>
impl<S, T, U> !RefUnwindSafe for HttpAuthenticationService<S, T, U>
impl<S, T, U> !Send for HttpAuthenticationService<S, T, U>
impl<S, T, U> !Send for HttpAuthenticationService<S, T, U>
impl<S, T, U> !Sync for HttpAuthenticationService<S, T, U>
impl<S, T, U> !Sync for HttpAuthenticationService<S, T, U>
impl<S, T, U> Unpin for HttpAuthenticationService<S, T, U>
impl<S, T, U> Unpin for HttpAuthenticationService<S, T, U>
impl<S, T, U> !UnwindSafe for HttpAuthenticationService<S, T, U>
impl<S, T, U> !UnwindSafe for HttpAuthenticationService<S, T, U>
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoService<T> for T where
T: Service,
impl<T> IntoService<T> for T where
T: Service,
pub fn into_service(self) -> T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,