pub struct Authentication<V> { /* private fields */ }Implementations§
Source§impl<V: TokenValidator> Authentication<V>
impl<V: TokenValidator> Authentication<V>
Source§impl<V: TokenValidator> Authentication<Box<V>>
impl<V: TokenValidator> Authentication<Box<V>>
Trait Implementations§
Source§impl<V: Clone> Clone for Authentication<V>
impl<V: Clone> Clone for Authentication<V>
Source§fn clone(&self) -> Authentication<V>
fn clone(&self) -> Authentication<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S, B, V> Transform<S, ServiceRequest> for Authentication<V>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: 'static,
V: TokenValidator,
impl<S, B, V> Transform<S, ServiceRequest> for Authentication<V>where
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: 'static,
V: TokenValidator,
Source§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
Source§type Transform = AuthenticationMiddleware<S, V>
type Transform = AuthenticationMiddleware<S, V>
The
TransformService value created by this factorySource§type Future = Ready<Result<<Authentication<V> as Transform<S, ServiceRequest>>::Transform, <Authentication<V> as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<Authentication<V> as Transform<S, ServiceRequest>>::Transform, <Authentication<V> 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
Auto Trait Implementations§
impl<V> Freeze for Authentication<V>where
V: Freeze,
impl<V> RefUnwindSafe for Authentication<V>where
V: RefUnwindSafe,
impl<V> Send for Authentication<V>where
V: Send,
impl<V> Sync for Authentication<V>where
V: Sync,
impl<V> Unpin for Authentication<V>where
V: Unpin,
impl<V> UnsafeUnpin for Authentication<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Authentication<V>where
V: UnwindSafe,
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