Struct ethcore_rpc::v1::NetClient
[−]
[src]
pub struct NetClient<S: ?Sized> where S: SyncProvider { /* fields omitted */ }
Net rpc implementation.
Methods
impl<S: ?Sized> NetClient<S> where S: SyncProvider
[src]
Trait Implementations
impl<S: ?Sized> Net for NetClient<S> where S: SyncProvider + 'static
[src]
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. Read more
fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
Transform this into an IoDelegate
, automatically wrapping the parameters. Read more