#[non_exhaustive]pub enum ErrorKind {
Show 18 variants
Http(Error),
HttpStatus(StatusCode),
Auth(AuthErrorDetails),
Metadata(String),
TonicMetadata(InvalidMetadataValue),
Jwt(Error),
TokenSource,
CredentialsJson(Error),
CredentialsFile(Error),
TokenJson(Error),
TokenData,
GrpcStatus(Error),
UrlError(InvalidUri),
InvalidApiUrl(String),
ExternalCredsSourceError(String),
HeaderValue(InvalidHeaderValue),
IdTokenNeedsImpersonation(IdTokenUnsupportedCredentials),
InvalidImpersonationUrl(String),
}Expand description
Represents the details of the Error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Http(Error)
Errors that can possibly occur while accessing an HTTP server.
HttpStatus(StatusCode)
Http status code that is not 2xx when getting token.
Auth(AuthErrorDetails)
Authentication failed while obtaining or refreshing a token. Distinguishes auth failures from errors of the API call itself.
Metadata(String)
GCE metadata service error.
TonicMetadata(InvalidMetadataValue)
Jwt(Error)
JWT encode/decode error.
TokenSource
Token source error.
CredentialsJson(Error)
An error parsing credentials file.
CredentialsFile(Error)
An error reading credentials file.
TokenJson(Error)
An error from json serialization and deserialization.
TokenData
Invalid token error.
GrpcStatus(Error)
UrlError(InvalidUri)
InvalidApiUrl(String)
An API URL that parses but cannot be connected to: no scheme, a scheme
other than http or https, or no host.
ExternalCredsSourceError(String)
HeaderValue(InvalidHeaderValue)
A header value built from user input (user agent, headers, the token itself) failed HTTP header validation (e.g. contained a control character).
IdTokenNeedsImpersonation(IdTokenUnsupportedCredentials)
The credentials hold no service account to mint an ID token as. An ID token
needs a service account to impersonate, given to
IdTokenSource::impersonating.
InvalidImpersonationUrl(String)
A service_account_impersonation_url in a credentials file that names no
service account.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
impl Freeze for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request