pub struct AuthenticationContext { /* private fields */ }Implementations§
Source§impl AuthenticationContext
impl AuthenticationContext
pub fn new() -> AuthenticationContext
pub fn login(&mut self, identity: ClaimsIdentity)
pub fn logout(&mut self)
pub fn get_identity(&self) -> Option<ClaimsIdentity>
Auto Trait Implementations§
impl Freeze for AuthenticationContext
impl RefUnwindSafe for AuthenticationContext
impl Send for AuthenticationContext
impl Sync for AuthenticationContext
impl Unpin for AuthenticationContext
impl UnwindSafe for AuthenticationContext
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