Trait fc_rpc_core::NetApi [−][src]
Net rpc interface.
Required methods
fn version(&self) -> Result<String>
[src]
Returns protocol version.
fn peer_count(&self) -> Result<u32>
[src]
Returns number of peers connected to node.
fn is_listening(&self) -> Result<bool>
[src]
Returns true if client is actively listening for network connections. Otherwise false.
Provided methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
[src]
Create an IoDelegate
, wiring rpc calls to the trait methods.