lookup_peer_label

Function lookup_peer_label 

Source
async fn lookup_peer_label(peer_id: PeerId, context: &CommandContext) -> String
Expand description

Looks up a peer’s label (nickname or short Peer ID).

§Arguments

  • peer_id - The PeerId to look up.
  • context - The CommandContext for accessing friend information.

§Returns

A string representing the peer’s label.