Skip to main content

StatusProvider

Trait StatusProvider 

Source
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§

Source

fn channel_statuses(&self) -> Vec<(String, String)>

Return (name, status_string) pairs for every registered channel.

Source

fn node_statuses(&self) -> Vec<(String, String)>

Return (name, health_string) pairs for every registered node.

Implementors§