#[non_exhaustive]pub enum GrpcClientError {
MissingEndpointSocketPath,
EmptyResponse,
InvalidEndpointSocketPath(SocketPathError),
InvalidX509Svid(X509SvidError),
InvalidJwtSvid(JwtSvidError),
InvalidX509Bundle(X509BundleError),
InvalidJwtBundle(JwtBundleError),
InvalidTrustDomain(SpiffeIdError),
Grpc(Status),
Transport(Error),
}
Expand description
Errors that may arise while interacting with and fetching materials from a GRPC client. Includes errors related to endpoint configuration, response handling, and data processing.
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.
MissingEndpointSocketPath
Missing environment variable for the endpoint socket address.
EmptyResponse
The GRPC client received an empty response.
InvalidEndpointSocketPath(SocketPathError)
Invalid endpoint socket path configuration.
InvalidX509Svid(X509SvidError)
Failed to parse the X509Svid response from the client.
InvalidJwtSvid(JwtSvidError)
Failed to parse the JwtSvid response from the client.
InvalidX509Bundle(X509BundleError)
Failed to parse the X509Bundle response from the client.
InvalidJwtBundle(JwtBundleError)
Failed to parse the JwtBundle response from the client.
InvalidTrustDomain(SpiffeIdError)
Invalid trust domain in the bundles response.
Grpc(Status)
Error returned by the GRPC library for error responses from the client.
Transport(Error)
Error returned by the GRPC library when creating a transport channel.
Trait Implementations§
Source§impl Debug for GrpcClientError
impl Debug for GrpcClientError
Source§impl Display for GrpcClientError
impl Display for GrpcClientError
Source§impl Error for GrpcClientError
impl Error for GrpcClientError
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<Error> for GrpcClientError
impl From<Error> for GrpcClientError
Source§impl From<JwtBundleError> for GrpcClientError
impl From<JwtBundleError> for GrpcClientError
Source§fn from(source: JwtBundleError) -> Self
fn from(source: JwtBundleError) -> Self
Converts to this type from the input type.
Source§impl From<JwtSvidError> for GrpcClientError
impl From<JwtSvidError> for GrpcClientError
Source§fn from(source: JwtSvidError) -> Self
fn from(source: JwtSvidError) -> Self
Converts to this type from the input type.
Source§impl From<SocketPathError> for GrpcClientError
impl From<SocketPathError> for GrpcClientError
Source§fn from(source: SocketPathError) -> Self
fn from(source: SocketPathError) -> Self
Converts to this type from the input type.
Source§impl From<SpiffeIdError> for GrpcClientError
impl From<SpiffeIdError> for GrpcClientError
Source§fn from(source: SpiffeIdError) -> Self
fn from(source: SpiffeIdError) -> Self
Converts to this type from the input type.
Source§impl From<Status> for GrpcClientError
impl From<Status> for GrpcClientError
Source§impl From<X509BundleError> for GrpcClientError
impl From<X509BundleError> for GrpcClientError
Source§fn from(source: X509BundleError) -> Self
fn from(source: X509BundleError) -> Self
Converts to this type from the input type.
Source§impl From<X509SvidError> for GrpcClientError
impl From<X509SvidError> for GrpcClientError
Source§fn from(source: X509SvidError) -> Self
fn from(source: X509SvidError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for GrpcClientError
impl !RefUnwindSafe for GrpcClientError
impl Send for GrpcClientError
impl Sync for GrpcClientError
impl Unpin for GrpcClientError
impl !UnwindSafe for GrpcClientError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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