/// Returns the socket that is connected to this socket, if such a peer exists. Returns
/// ENOTCONN otherwise.
Returns the socket that is connected to this socket, if such a peer exists. Returns
ENOTCONN otherwise.
Returns the socket that is connected to this socket if such a peer exists . Returns ENOTCONN otherwise .
fn peer(&self) -> Option<&SocketHandle> {
        match &self.state {
            SocketState::Connected(peer) => Some(peer),
            _ => None,
        }
    }
fn peer ( & self ) -> Option < & SocketHandle > { match & self . state { SocketState :: Connected ( peer ) => Some ( peer ) , _ => None , } }
Returns the socket that is connected to this socket, if such a peer exists.
Returns the socket that is connected to this socket if such a peer exists .
&self