#[non_exhaustive]pub enum ErrorKind {
Show 15 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),
ExternalCredsSourceError(String),
HeaderValue(InvalidHeaderValue),
}Expand description
Represents the details of the Error
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.
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)
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).
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request