pub struct AuthManagerLayer<Backend: AuthnBackend, Sessions: SessionStore, C: CookieController = PlaintextCookie> { /* private fields */ }Expand description
A layer for providing AuthSession as a request extension.
Trait Implementationsยง
Sourceยงimpl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore, C: Clone + CookieController> Clone for AuthManagerLayer<Backend, Sessions, C>
impl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore, C: Clone + CookieController> Clone for AuthManagerLayer<Backend, Sessions, C>
Sourceยงfn clone(&self) -> AuthManagerLayer<Backend, Sessions, C>
fn clone(&self) -> AuthManagerLayer<Backend, Sessions, C>
Returns a duplicate 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, C: Debug + CookieController> Debug for AuthManagerLayer<Backend, Sessions, C>
impl<Backend: Debug + AuthnBackend, Sessions: Debug + SessionStore, C: Debug + CookieController> Debug for AuthManagerLayer<Backend, Sessions, C>
Sourceยงimpl<S, Backend: AuthnBackend, Sessions: SessionStore, C: CookieController> Layer<S> for AuthManagerLayer<Backend, Sessions, C>
impl<S, Backend: AuthnBackend, Sessions: SessionStore, C: CookieController> Layer<S> for AuthManagerLayer<Backend, Sessions, C>
Sourceยงtype Service = CookieManager<SessionManager<AuthManager<S, Backend>, Sessions, C>>
type Service = CookieManager<SessionManager<AuthManager<S, Backend>, Sessions, C>>
The wrapped service
Auto Trait Implementationsยง
impl<Backend, Sessions, C> Freeze for AuthManagerLayer<Backend, Sessions, C>
impl<Backend, Sessions, C> RefUnwindSafe for AuthManagerLayer<Backend, Sessions, C>
impl<Backend, Sessions, C> Send for AuthManagerLayer<Backend, Sessions, C>
impl<Backend, Sessions, C> Sync for AuthManagerLayer<Backend, Sessions, C>where
C: Sync,
impl<Backend, Sessions, C> Unpin for AuthManagerLayer<Backend, Sessions, C>
impl<Backend, Sessions, C> UnwindSafe for AuthManagerLayer<Backend, Sessions, C>
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