Enum DevicePollOutcome
pub enum DevicePollOutcome {
Pending,
SlowDown,
Denied(String),
Token(Box<EnrolledToken>),
}Variants§
Pending
The user has not approved yet; poll again after the interval.
SlowDown
The IdP asked to slow down; add five seconds to the interval.
Denied(String)
The IdP rejected the grant outright (access_denied,
expired_token, an unknown device code, and the like): the OAuth
error with its description. Distinct from a transport or parse
failure, which is an Err and says nothing about the device code.
Token(Box<EnrolledToken>)
The token was granted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DevicePollOutcome
impl RefUnwindSafe for DevicePollOutcome
impl Send for DevicePollOutcome
impl Sync for DevicePollOutcome
impl Unpin for DevicePollOutcome
impl UnsafeUnpin for DevicePollOutcome
impl UnwindSafe for DevicePollOutcome
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more