(error: RpcError, id: T)
| 113 | |
| 114 | impl JsonRpcResponse<()> { |
| 115 | pub fn error<T: Into<String>>(error: RpcError, id: T) -> Self { |
| 116 | Self { |
| 117 | id: id.into(), |
| 118 | body: JsonRpcResponseBody::Error { error }, |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | impl<R> JsonRpcResponse<R> { |
no outgoing calls