pub struct SessionState { /* private fields */ }Expand description
The stateful mode: a nonce in the session, compared on return.
Implementations§
Source§impl SessionState
impl SessionState
pub fn new(session: SessionHandle) -> SessionState
Sourcepub fn keyed(self, key: impl Into<String>) -> SessionState
pub fn keyed(self, key: impl Into<String>) -> SessionState
Store the pending flow somewhere other than _oauth_state.
Worth doing when an application offers two providers side by side: with one key, opening Google and GitHub in two tabs leaves only the second flow completable.
pub fn lifetime(self, lifetime: Duration) -> SessionState
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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