pub struct LoginContext<'a, Auth> { /* private fields */ }Expand description
Session and CAPTCHA state used by shared login flows.
Implementations§
Source§impl<'a, Auth: LoginSession<Id = String>> LoginContext<'a, Auth>
impl<'a, Auth: LoginSession<Id = String>> LoginContext<'a, Auth>
Sourcepub fn new(auth: &'a mut Auth, captcha_valid: bool) -> Self
pub fn new(auth: &'a mut Auth, captcha_valid: bool) -> Self
Creates a login context after the application’s CAPTCHA check.
Auto Trait Implementations§
impl<'a, Auth> !UnwindSafe for LoginContext<'a, Auth>
impl<'a, Auth> Freeze for LoginContext<'a, Auth>where
&'a mut Auth: Freeze,
impl<'a, Auth> RefUnwindSafe for LoginContext<'a, Auth>where
&'a mut Auth: RefUnwindSafe,
impl<'a, Auth> Send for LoginContext<'a, Auth>where
&'a mut Auth: Send,
impl<'a, Auth> Sync for LoginContext<'a, Auth>where
&'a mut Auth: Sync,
impl<'a, Auth> Unpin for LoginContext<'a, Auth>where
&'a mut Auth: Unpin,
impl<'a, Auth> UnsafeUnpin for LoginContext<'a, Auth>where
&'a mut Auth: UnsafeUnpin,
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