Trait HasGraphView
pub trait HasGraphView {
type Graph: NetworkGraphView<NodeId = OffchainPublicKey> + NetworkGraphConnectivity<NodeId = OffchainPublicKey> + NetworkGraphTraverse<NodeId = OffchainPublicKey> + Send + Sync;
// Required methods
fn graph(&self) -> &Self::Graph;
fn status(&self) -> ComponentStatus;
}Expand description
Provides read-only access to the network graph and its health status.
Required Associated Types§
type Graph: NetworkGraphView<NodeId = OffchainPublicKey> + NetworkGraphConnectivity<NodeId = OffchainPublicKey> + NetworkGraphTraverse<NodeId = OffchainPublicKey> + Send + Sync
type Graph: NetworkGraphView<NodeId = OffchainPublicKey> + NetworkGraphConnectivity<NodeId = OffchainPublicKey> + NetworkGraphTraverse<NodeId = OffchainPublicKey> + Send + Sync
The concrete graph type, constrained to read-only operations.
Required Methods§
fn status(&self) -> ComponentStatus
fn status(&self) -> ComponentStatus
Reports the current health of the graph component.