Enum cubist_proxy::JsonRpcErr
source · pub enum JsonRpcErr {
Jrpc(JrpcError),
Fatal(FatalErr),
}
Expand description
An error message for a JSON-RPC processing pipeline.
This is either a wrapper around serde_json::Value
or a fatal error that should kill the pipeline.
The intent is that elements in a processing pipeline should generate descriptive error messages and wrap them in JsonRpcErr.
Variants§
Trait Implementations§
source§impl Clone for JsonRpcErr
impl Clone for JsonRpcErr
source§fn clone(&self) -> JsonRpcErr
fn clone(&self) -> JsonRpcErr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JsonRpcErr
impl Debug for JsonRpcErr
source§impl Display for JsonRpcErr
impl Display for JsonRpcErr
source§impl Error for JsonRpcErr
impl Error for JsonRpcErr
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<Error> for JsonRpcErr
impl From<Error> for JsonRpcErr
source§fn from(other: JsonParseError) -> Self
fn from(other: JsonParseError) -> Self
Converts to this type from the input type.
source§impl From<JsonRpcErr> for HttpRrErr
impl From<JsonRpcErr> for HttpRrErr
source§fn from(other: JsonRpcErr) -> Self
fn from(other: JsonRpcErr) -> Self
Converts to this type from the input type.