//! Net rpc implementation. use jsonrpc_core::*; use traits::Net; /// Net rpc implementation. pub struct NetClient; impl NetClient { /// Creates new NetClient. pub fn new() -> Self { NetClient } } impl Net for NetClient { fn version(&self, _: Params) -> Result { Ok(Value::U64(63)) } fn peer_count(&self, _params: Params) -> Result { Ok(Value::U64(0)) } }