#[non_exhaustive]pub enum GrpcClientError {
Call(GrpcCallError),
AwaitedOnCreateContext,
EmptyContent,
Decode(Box<dyn Error + Send + Sync>),
Status(GrpcStatus),
}Expand description
The Errors that may occur when processing a gRPC request.
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.
Call(GrpcCallError)
The Errors that may occur when processing a gRPC request before sending it to upstream.
AwaitedOnCreateContext
Request awaited on create context event.
EmptyContent
Response with empty content.
Decode(Box<dyn Error + Send + Sync>)
Message decoding problem.
Status(GrpcStatus)
Bad gRPC status.
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<GrpcCallError> for GrpcClientError
impl From<GrpcCallError> for GrpcClientError
Source§fn from(source: GrpcCallError) -> Self
fn from(source: GrpcCallError) -> 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<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