pub trait ToJsonRpcError:
Error
+ Send
+ Sync
+ 'static {
// Required method
fn to_error_object(&self) -> JsonRpcErrorObject;
}
Expand description
Trait for errors that can be converted to JSON-RPC error objects
Required Methods§
Sourcefn to_error_object(&self) -> JsonRpcErrorObject
fn to_error_object(&self) -> JsonRpcErrorObject
Convert this error to a JSON-RPC error object