Initial codec module

This commit is contained in:
Age Manning
2019-07-13 18:56:08 +10:00
parent d84780a339
commit 15cdd2afb9
6 changed files with 415 additions and 873 deletions

View File

@@ -251,6 +251,7 @@ impl RPCErrorResponse {
}
}
/// Used to encode the response.
pub fn as_u8(&self) -> u8 {
match self {
RPCErrorResponse::Success(_) => 0,