#[non_exhaustive]pub enum SsoState {
Idle,
AwaitingScan {
qr_uri: String,
},
Paired {
address: String,
display_name: String,
phone_online: bool,
},
Failed {
reason: String,
},
}Expand description
Observed state of the SSO session manager.
Transitions flow: Idle → AwaitingScan → Paired (happy path),
or any state → Failed on error. unpair() always returns to Idle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Idle
No active session; pairing has not been initiated.
AwaitingScan
QR code is displayed; waiting for the mobile app to scan it.
Paired
A session is established with the mobile wallet.
Fields
Failed
The last operation failed; the manager returns to Idle on next pair().
Trait Implementations§
impl StructuralPartialEq for SsoState
Auto Trait Implementations§
impl Freeze for SsoState
impl RefUnwindSafe for SsoState
impl Send for SsoState
impl Sync for SsoState
impl Unpin for SsoState
impl UnsafeUnpin for SsoState
impl UnwindSafe for SsoState
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