#[non_exhaustive]pub enum GrpcCallError {
Proxy(GrpcProxyError),
InvalidUpstream(String),
Encode(Box<dyn Error + Send + Sync>),
}Expand description
The Errors that may occur when processing a gRPC request before sending it to upstream.
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.
Proxy(GrpcProxyError)
Proxy status problem.
InvalidUpstream(String)
Invalid upstream.
Encode(Box<dyn Error + Send + Sync>)
Message encoding problem.
Trait Implementations§
Source§impl Debug for GrpcCallError
impl Debug for GrpcCallError
Source§impl Display for GrpcCallError
impl Display for GrpcCallError
Source§impl Error for GrpcCallError
impl Error for GrpcCallError
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.
Source§impl From<GrpcProxyError> for GrpcCallError
impl From<GrpcProxyError> for GrpcCallError
Source§fn from(source: GrpcProxyError) -> Self
fn from(source: GrpcProxyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GrpcCallError
impl !RefUnwindSafe for GrpcCallError
impl Send for GrpcCallError
impl Sync for GrpcCallError
impl Unpin for GrpcCallError
impl !UnwindSafe for GrpcCallError
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