ToJsonRpcError

Trait ToJsonRpcError 

Source
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§

Source

fn to_error_object(&self) -> JsonRpcErrorObject

Convert this error to a JSON-RPC error object

Implementors§