#[macro_export]
macro_rules! impl_client_v17__getaddednodeinfo {
() => {
impl Client {
pub fn get_added_node_info(&self) -> Result<GetAddedNodeInfo> {
self.call("getaddednodeinfo", &[])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v17__getnettotals {
() => {
impl Client {
pub fn get_net_totals(&self) -> Result<GetNetTotals> { self.call("getnettotals", &[]) }
}
};
}
#[macro_export]
macro_rules! impl_client_v17__getnetworkinfo {
() => {
impl Client {
pub fn server_version(&self) -> Result<usize> {
let info = self.get_network_info()?;
Ok(info.version)
}
pub fn get_network_info(&self) -> Result<GetNetworkInfo> {
self.call("getnetworkinfo", &[])
}
}
};
}
#[macro_export]
macro_rules! impl_client_v17__getpeerinfo {
() => {
impl Client {
pub fn get_peer_info(&self) -> Result<GetPeerInfo> { self.call("getpeerinfo", &[]) }
}
};
}