Add send rpc in message handler

This commit is contained in:
Age Manning
2019-03-19 12:19:07 +11:00
parent 495348f934
commit 31333e8f8e
2 changed files with 42 additions and 9 deletions

View File

@@ -17,6 +17,15 @@ impl From<u16> for RPCMethod {
}
}
impl Into<u16> for RPCMethod {
fn into(self) -> u16 {
match self {
RPCMethod::Hello => 0,
_ => 0,
}
}
}
#[derive(Debug, Clone)]
pub enum RPCRequest {
Hello(HelloMessage),