pub fn contains_peer(&self, address: &SocketAddr) -> bool {
        match self {
            PeerRequest::Copy { from, .. } => from == address,
            PeerRequest::Take { from, .. } => from == address,
        }
    }
/// Returns true if this peer requests contains the specified peer address.
Returns true if this peer requests contains the specified peer address.
Returns true if this peer requests contains the specified peer address .
pub fn contains_peer(&self, address: &SocketAddr) -> bool {
        match self {
            PeerRequest::Copy { from, .. } => from == address,
            PeerRequest::Take { from, .. } => from == address,
        }
    }
pub fn contains_peer ( & self , address : & SocketAddr ) -> bool { match self { PeerRequest :: Copy { from , .. } => from == address , PeerRequest :: Take { from , .. } => from == address , } }
Returns true if this peer requests contains the specified peer address.
Returns true if this peer requests contains the specified peer address .
&self
address
&SocketAddr
&self
address
&SocketAddr