Trait HasNetworkView
pub trait HasNetworkView {
type NetworkView: NetworkView + Send + Sync;
// Required methods
fn network_view(&self) -> &Self::NetworkView;
fn status(&self) -> ComponentStatus;
}Expand description
Provides read-only access to the network layer (peer connectivity, addresses).
Required Associated Types§
type NetworkView: NetworkView + Send + Sync
type NetworkView: NetworkView + Send + Sync
The concrete NetworkView implementation.
Required Methods§
fn network_view(&self) -> &Self::NetworkView
fn network_view(&self) -> &Self::NetworkView
Returns a reference to the network view.
fn status(&self) -> ComponentStatus
fn status(&self) -> ComponentStatus
Reports the current health of the network component.