pub fn new(peer_type: OurType, addr: SocketAddr) -> Self {
        match peer_type {
            OurType::Client => Self::Client(addr),
            OurType::Node => Self::Node(addr),
        }
    }
/// Create `Peer` with the given type and address.
Create `Peer` with the given type and address.
Create ` Peer ` with the given type and address .
pub fn new(peer_type: OurType, addr: SocketAddr) -> Self {
        match peer_type {
            OurType::Client => Self::Client(addr),
            OurType::Node => Self::Node(addr),
        }
    }
pub fn new ( peer_type : OurType , addr : SocketAddr ) -> Self { match peer_type { OurType :: Client => Self :: Client ( addr ) , OurType :: Node => Self :: Node ( addr ) , } }
Create `Peer` with the given type and address.
Create ` Peer ` with the given type and address .
peer_type
OurType
addr
SocketAddr