#[non_exhaustive]pub enum SessionStatus {
Active,
Abandoned,
Ended,
Expired,
Pending,
Removed,
Replaced,
Revoked,
Other(OtherStatus),
}Expand description
Session status as reported by clerk-js.
Serializes as the raw clerk-js status string. The enum is
#[non_exhaustive]; statuses this crate has not named yet round-trip
through SessionStatus::Other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Active
The session is valid and the user is signed in.
Abandoned
The user abandoned the auth flow before the session became active.
Ended
The session ended, for example by signing out of it.
Expired
The session expired.
Pending
The session requires additional steps (for example MFA) before it is active.
Removed
The session was removed.
Replaced
The session was replaced by a newer session.
Revoked
The session was revoked.
Other(OtherStatus)
A status string this crate has not named yet.
Only produced by the From<&str>/From<String>/FromStr conversions,
which canonicalize known strings to their named variants first. The
payload is an OtherStatus with no public constructor, so an Other
can never alias a named variant (e.g. hold "active"): reads through
SessionStatus::as_str and comparisons therefore stay consistent.
Implementations§
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more