pub struct DeviceCode {
pub user_code: String,
pub verification_uri: String,
pub message: Option<String>,
/* private fields */
}Fields§
§user_code: String§verification_uri: String§message: Option<String>Implementations§
Source§impl DeviceCode
impl DeviceCode
Sourcepub async fn poll(
self,
config: &ProfileConfig,
timeout: Duration,
) -> Result<Tokens>
pub async fn poll( self, config: &ProfileConfig, timeout: Duration, ) -> Result<Tokens>
Poll until the user finishes in the browser.
authorization_pending is the ordinary answer and slow_down asks for a
longer gap; every other code ends the wait, because nothing the user does
in the browser will fix a bad client id.
Auto Trait Implementations§
impl Freeze for DeviceCode
impl RefUnwindSafe for DeviceCode
impl Send for DeviceCode
impl Sync for DeviceCode
impl Unpin for DeviceCode
impl UnsafeUnpin for DeviceCode
impl UnwindSafe for DeviceCode
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