#[non_exhaustive]pub enum GrpcClientError {
MissingEndpointSocketPath,
EmptyResponse,
InvalidEndpointSocketPath(SocketPathError),
X509Svid(X509SvidError),
JwtSvid(JwtSvidError),
X509Bundle(X509BundleError),
JwtBundle(JwtBundleError),
SpiffeId(SpiffeIdError),
Grpc(Status),
Transport(Error),
}Expand description
Errors produced by the Workload API client.
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
SPIFFE_ENDPOINT_SOCKET is not set.
EmptyResponse
The Workload API returned an empty response.
InvalidEndpointSocketPath(SocketPathError)
The endpoint socket path is invalid.
X509Svid(X509SvidError)
Failed to parse an X.509 SVID from the Workload API response.
JwtSvid(JwtSvidError)
Failed to parse a JWT-SVID from the Workload API response.
X509Bundle(X509BundleError)
Failed to parse an X.509 bundle from the Workload API response.
JwtBundle(JwtBundleError)
Failed to parse a JWT bundle from the Workload API response.
SpiffeId(SpiffeIdError)
Failed to parse a SPIFFE identifier from the Workload API response.
Grpc(Status)
gRPC status returned by the Workload API.
Transport(Error)
Transport error while connecting to the Workload API.
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<GrpcClientError> for X509SourceError
impl From<GrpcClientError> for X509SourceError
Source§fn from(source: GrpcClientError) -> Self
fn from(source: GrpcClientError) -> Self
Converts to this type from the input type.
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