pub enum ErrorKind {
Show 13 variants
Http(Error),
HttpStatus(StatusCode),
Metadata(String),
TonicMetadata(InvalidMetadataValue),
Jwt(Error),
TokenSource,
CredentialsJson(Error),
CredentialsFile(Error),
TokenJson(Error),
TokenData,
GrpcStatus(Error),
UrlError(InvalidUri),
ExternalCredsSourceError(String),
// some variants omitted
}
Expand description
Represents the details of the Error
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.
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)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe 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