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

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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