Enum oauth2::devicecode::DeviceCodeErrorResponseType [−][src]
pub enum DeviceCodeErrorResponseType {
AuthorizationPending,
SlowDown,
AccessDenied,
ExpiredToken,
Basic(BasicErrorResponseType),
}
Expand description
Basic access token error types.
These error types are defined in Section 5.2 of RFC 6749 and Section 3.5 of RFC 6749
Variants
AuthorizationPending
The authorization request is still pending as the end user hasn’t yet completed the user-interaction steps. The client SHOULD repeat the access token request to the token endpoint. Before each new request, the client MUST wait at least the number of seconds specified by the “interval” parameter of the device authorization response, or 5 seconds if none was provided, and respect any increase in the polling interval required by the “slow_down” error.
SlowDown
A variant of “authorization_pending”, the authorization request is still pending and polling should continue, but the interval MUST be increased by 5 seconds for this and all subsequent requests.
AccessDenied
The authorization request was denied.
ExpiredToken
The “device_code” has expired, and the device authorization session has concluded. The client MAY commence a new device authorization request but SHOULD wait for user interaction before restarting to avoid unnecessary polling.
Basic(BasicErrorResponseType)
Tuple Fields
A Basic response type
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DeviceCodeErrorResponseType
impl Send for DeviceCodeErrorResponseType
impl Sync for DeviceCodeErrorResponseType
impl Unpin for DeviceCodeErrorResponseType
impl UnwindSafe for DeviceCodeErrorResponseType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more