pub trait PeersHandleProvider {
// Required method
fn peers_handle(&self) -> &PeersHandle;
}Available on crate feature
network only.Expand description
Provides an API for managing the peers of the network.
Required Methods§
Sourcefn peers_handle(&self) -> &PeersHandle
fn peers_handle(&self) -> &PeersHandle
Returns the PeersHandle that can be cloned and shared.
The PeersHandle can be used to interact with the network’s peer set.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".