pub struct AuthLayer<V> { /* private fields */ }Expand description
A Tower layer that performs authentication using a provided validator
This is a generic auth layer that can be used with any validator that implements the appropriate validation trait.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for AuthLayer<V>where
V: Freeze,
impl<V> RefUnwindSafe for AuthLayer<V>where
V: RefUnwindSafe,
impl<V> Send for AuthLayer<V>where
V: Send,
impl<V> Sync for AuthLayer<V>where
V: Sync,
impl<V> Unpin for AuthLayer<V>where
V: Unpin,
impl<V> UnwindSafe for AuthLayer<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