pub enum RpcError {
Shutdown,
Send(Box<dyn Error + Send + Sync + 'static>),
Receive(Arc<dyn Error + Send + Sync + 'static>),
DeadlineExceeded,
Server(ServerError),
}
Expand description
An error that can occur in the processing of an RPC. This is not request-specific errors but rather cross-cutting errors that can always occur.
Variants§
Shutdown
The client disconnected from the server.
Send(Box<dyn Error + Send + Sync + 'static>)
The client failed to send the request.
Receive(Arc<dyn Error + Send + Sync + 'static>)
An error occurred while waiting for the server response.
DeadlineExceeded
The request exceeded its deadline.
Server(ServerError)
The server aborted request processing.
Trait Implementations§
source§impl Error for RpcError
impl Error for RpcError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ServerError> for RpcError
impl From<ServerError> for RpcError
source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.