#[non_exhaustive]pub enum OAuthError {
InvalidResource {
resource: String,
reason: String,
},
InvalidAuthorizationServer {
issuer: String,
reason: String,
},
NoAuthorizationServer,
InvalidScope(String),
OfflineAccess,
InvalidTimeout,
}Expand description
Invalid OAuth settings.
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.
InvalidResource
The resource is not a valid canonical URI.
InvalidAuthorizationServer
An authorization server URL is invalid.
NoAuthorizationServer
No authorization server was given.
InvalidScope(String)
A scope contains characters OAuth does not allow.
OfflineAccess
offline_access was listed.
InvalidTimeout
The verification timeout is zero.
Implementations§
Trait Implementations§
Source§impl Clone for OAuthError
impl Clone for OAuthError
Source§impl Debug for OAuthError
impl Debug for OAuthError
Source§impl Display for OAuthError
impl Display for OAuthError
impl Eq for OAuthError
Source§impl Error for OAuthError
impl Error for OAuthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OAuthError
impl PartialEq for OAuthError
impl StructuralPartialEq for OAuthError
Auto Trait Implementations§
impl Freeze for OAuthError
impl RefUnwindSafe for OAuthError
impl Send for OAuthError
impl Sync for OAuthError
impl Unpin for OAuthError
impl UnsafeUnpin for OAuthError
impl UnwindSafe for OAuthError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<E> IntoToolError for E
impl<E> IntoToolError for E
Source§fn into_tool_error(self) -> ToolError
fn into_tool_error(self) -> ToolError
Performs the conversion.