pub trait NetApiClient: ClientT {
    // Provided methods
    fn version(&self) -> impl Future<Output = Result<String, Error>> + Send { ... }
    fn peer_count(&self) -> impl Future<Output = Result<U64, Error>> + Send { ... }
    fn is_listening(&self) -> impl Future<Output = Result<bool, Error>> + Send { ... }
}Available on crate feature 
client only.Expand description
Client implementation for the NetApi RPC API.
Provided Methods§
Sourcefn version(&self) -> impl Future<Output = Result<String, Error>> + Send
 
fn version(&self) -> impl Future<Output = Result<String, Error>> + Send
Returns the network ID.
Sourcefn peer_count(&self) -> impl Future<Output = Result<U64, Error>> + Send
 
fn peer_count(&self) -> impl Future<Output = Result<U64, Error>> + Send
Returns number of peers connected to node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.