Trait ethcore_rpc::v1::traits::net::Net []

pub trait Net: Sized + Send + Sync + 'static {
    fn version(&self) -> Result<String, Error>;
    fn peer_count(&self) -> Result<String, Error>;
    fn is_listening(&self) -> Result<bool, Error>;

    fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}

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

Transform this into an IoDelegate, automatically wrapping the parameters.

Implementors