#[non_exhaustive]pub enum DeviceEvent<'a> {
Pending,
SlowDown {
interval: Duration,
},
TransientError {
error: &'a Error,
retry_in: Duration,
},
}Expand description
What AccountsAuth::wait_for_device_sign_in reports between polls.
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
Still waiting for the Carbon.
SlowDown
Silicon Accounts asked to poll more slowly; the new interval.
TransientError
A poll failed temporarily (network, 5xx, rate limit); polling continues.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DeviceEvent<'a>
impl<'a> !UnwindSafe for DeviceEvent<'a>
impl<'a> Freeze for DeviceEvent<'a>
impl<'a> Send for DeviceEvent<'a>
impl<'a> Sync for DeviceEvent<'a>
impl<'a> Unpin for DeviceEvent<'a>
impl<'a> UnsafeUnpin for DeviceEvent<'a>
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