pub enum ConfigError {
HttpClientBuild {
source: Box<dyn Error + Send + Sync>,
},
HttpRequest(Error),
InvalidDescriptor {
source: ParseError,
},
InvalidRedirect {
source: ParseError,
},
UnsupportedGrant {
descriptor: String,
grant: &'static str,
},
MissingRefreshToken,
InvalidScope(ScopeValidationError),
TokenBuild(TokenRecordBuilderError),
MissingExpiresIn,
ExpiresInOutOfRange,
NonPositiveExpiresIn,
ScopesChanged {
grant: &'static str,
},
}Expand description
Configuration and validation failures raised by the broker.
Variants§
HttpClientBuild
HTTP client could not be constructed.
HttpRequest(Error)
HTTP request construction failed.
InvalidDescriptor
Provider descriptor contains an invalid URL.
Fields
§
source: ParseErrorUnderlying parsing failure.
InvalidRedirect
Redirect URI cannot be parsed.
Fields
§
source: ParseErrorUnderlying parsing failure.
UnsupportedGrant
Descriptor does not enable the requested grant.
MissingRefreshToken
Cached record is missing a refresh secret.
InvalidScope(ScopeValidationError)
Request scopes cannot be normalized.
TokenBuild(TokenRecordBuilderError)
Token record builder validation failed.
MissingExpiresIn
Token endpoint response omitted expires_in.
ExpiresInOutOfRange
Token endpoint returned an excessively large expires_in.
NonPositiveExpiresIn
Token endpoint returned a non-positive duration.
ScopesChanged
Provider changed scopes during the exchange.
Implementations§
Source§impl ConfigError
impl ConfigError
Sourcepub fn http_client_build(src: impl 'static + Send + Sync + Error) -> Self
pub fn http_client_build(src: impl 'static + Send + Sync + Error) -> Self
Wraps a transport’s builder failure inside ConfigError.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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 From<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ConfigError
impl From<Error> for ConfigError
Source§impl From<Error> for ConfigError
Available on crate feature reqwest only.
impl From<Error> for ConfigError
Available on crate feature
reqwest only.Source§impl From<ScopeValidationError> for ConfigError
impl From<ScopeValidationError> for ConfigError
Source§fn from(source: ScopeValidationError) -> Self
fn from(source: ScopeValidationError) -> Self
Converts to this type from the input type.
Source§impl From<TokenRecordBuilderError> for ConfigError
impl From<TokenRecordBuilderError> for ConfigError
Source§fn from(source: TokenRecordBuilderError) -> Self
fn from(source: TokenRecordBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigError
impl !RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl !UnwindSafe for ConfigError
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> 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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.