Struct axum_login::AuthManagerLayer
source · pub struct AuthManagerLayer<Backend: AuthnBackend, Sessions: SessionStore> { /* private fields */ }
Expand description
A layer for providing AuthSession
as a request extension.
Trait Implementations§
source§impl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore> Clone for AuthManagerLayer<Backend, Sessions>
impl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore> Clone for AuthManagerLayer<Backend, Sessions>
source§fn clone(&self) -> AuthManagerLayer<Backend, Sessions>
fn clone(&self) -> AuthManagerLayer<Backend, Sessions>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Backend: Debug + AuthnBackend, Sessions: Debug + SessionStore> Debug for AuthManagerLayer<Backend, Sessions>
impl<Backend: Debug + AuthnBackend, Sessions: Debug + SessionStore> Debug for AuthManagerLayer<Backend, Sessions>
source§impl<S, Backend: AuthnBackend, Sessions: SessionStore> Layer<S> for AuthManagerLayer<Backend, Sessions>
impl<S, Backend: AuthnBackend, Sessions: SessionStore> Layer<S> for AuthManagerLayer<Backend, Sessions>
§type Service = CookieManager<SessionManager<AuthManager<S, Backend>, Sessions>>
type Service = CookieManager<SessionManager<AuthManager<S, Backend>, Sessions>>
The wrapped service
Auto Trait Implementations§
impl<Backend, Sessions> RefUnwindSafe for AuthManagerLayer<Backend, Sessions>where
Backend: RefUnwindSafe,
Sessions: RefUnwindSafe,
impl<Backend, Sessions> Send for AuthManagerLayer<Backend, Sessions>
impl<Backend, Sessions> Sync for AuthManagerLayer<Backend, Sessions>
impl<Backend, Sessions> Unpin for AuthManagerLayer<Backend, Sessions>where
Backend: Unpin,
impl<Backend, Sessions> UnwindSafe for AuthManagerLayer<Backend, Sessions>where
Backend: UnwindSafe,
Sessions: RefUnwindSafe,
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