Function kind_to_code

Source
fn kind_to_code(kind: ErrorKind) -> RpcErrorKind
Expand description

Helper: Return an error code (for backward compat with json-rpc) for an ErrorKind.

These are not especially helpful and nobody should really use them.