pub trait Net: Sized + Send + Sync + 'static {
    fn version(&self) -> Result<String>;
fn peer_count(&self) -> Result<String>;
fn is_listening(&self) -> Result<bool>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }
Expand description

Net rpc interface.

Required methods

Returns protocol version.

Returns number of peers connected to node.

Returns true if client is actively listening for network connections. Otherwise false.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors