Trait fc_rpc_core::NetApi[][src]

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

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.

Loading content...

Provided methods

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>[src]

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

Loading content...

Implementors

Loading content...