pub trait ToRpcError:
Error
+ Send
+ Sync
+ 'static {
// Required method
fn to_rpc_error(&self) -> ErrorObject<'static>;
}
Expand description
A trait to convert an error to an RPC error.
Required Methods§
Sourcefn to_rpc_error(&self) -> ErrorObject<'static>
fn to_rpc_error(&self) -> ErrorObject<'static>
Converts the error to a JSON-RPC error object.