pub trait StatusProvider: Send + Sync {
// Required methods
fn channel_statuses(&self) -> Vec<(String, String)>;
fn node_statuses(&self) -> Vec<(String, String)>;
}Expand description
Provides channel and node status snapshots for the gateway.
Implement this trait to wire real ChannelManager / NodeManager data
into the gateway’s ListChannels and ListNodes handlers.
Required Methods§
Sourcefn channel_statuses(&self) -> Vec<(String, String)>
fn channel_statuses(&self) -> Vec<(String, String)>
Return (name, status_string) pairs for every registered channel.
Sourcefn node_statuses(&self) -> Vec<(String, String)>
fn node_statuses(&self) -> Vec<(String, String)>
Return (name, health_string) pairs for every registered node.