fn runtime_error_into_rpc_error(err: impl std::fmt::Debug) -> RpcError {
    RpcError {
        code: ErrorCode::ServerError(Error::RuntimeError.into()),
        message: "Runtime trapped".into(),
        data: Some(format!("{:?}", err).into()),
    }
}
/// Converts a runtime trap into an RPC error.
Converts a runtime trap into an RPC error.
Converts a runtime trap into an RPC error .
fn runtime_error_into_rpc_error(err: impl std::fmt::Debug) -> RpcError {
    RpcError {
        code: ErrorCode::ServerError(Error::RuntimeError.into()),
        message: "Runtime trapped".into(),
        data: Some(format!("{:?}", err).into()),
    }
}
fn runtime_error_into_rpc_error ( err : impl std :: fmt :: Debug ) -> RpcError { RpcError { code : ErrorCode :: ServerError ( Error :: RuntimeError . into ( ) ) , message : " " . into ( ) , data : Some ( format ! ( " " err ) . into ( ) ) , } }
Converts a runtime trap into an RPC error.
Converts a runtime trap into an RPC error .
err
impl std::fmt::Debug
err
impl std::fmt::Debug