/// Utility function to display the first net address of a &Peer as a String
Utility function to display the first net address of a &Peer as a String
Utility function to display the first net address of a &Peer as a String
pub fn display_address(peer: &Peer) -> String {
    match peer.addresses.first() {
        Some(address) => address.to_string(),
        None => "".to_string(),
    }
}
pub fn display_address ( peer : & Peer ) -> String { match peer . addresses . first ( ) { Some ( address ) => address . to_string ( ) , None => " " . to_string ( ) , } }
Utility function to display the first net address of a &Peer as a String
Utility function to display the first net address of a &Peer as a String
peer
&Peer