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
fn version(&self) -> Result<String, Error>
Returns protocol version.
fn peer_count(&self) -> Result<String, Error>
Returns number of peers connected to node.
fn is_listening(&self) -> Result<bool, Error>
Returns true if client is actively listening for network connections. Otherwise false.
Provided Methods
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping
the parameters.
Implementors
impl<S: ?Sized> Net for NetClient<S> where S: SyncProvider + 'static