#[non_exhaustive]pub enum DeviceStatus {
Pending,
SlowDown,
Denied,
Expired,
SignedIn(Box<SignIn>),
}Expand description
One poll of a device sign-in.
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.
Pending
Not approved yet; poll again after the interval.
SlowDown
Polling too fast: add 5 seconds to the interval.
Denied
The Carbon denied the sign-in on the account site.
Expired
The code expired (10 minutes) before anyone approved it.
SignedIn(Box<SignIn>)
Approved.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnsafeUnpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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