list_peers

Function list_peers 

Source
pub async fn list_peers(context: &CommandContext) -> Result<()>
Expand description

Lists all currently connected peers and their roles (friend, mailbox, or generic peer).

§Arguments

  • context - The CommandContext providing access to the application’s state and network.

§Errors

This function returns an error if retrieving the peer list from the network fails.