pub fn peer(&self) -> Option<&AuthenticatedPeer> {
        match &self.0 {
            ConnectionState::Ready { peer, .. } => Some(peer),
            _ => None,
        }
    }
/// Returns the identity of the connected peer if the TLS
/// handshake completed successfully. Returns None if the handshake is not
/// completed yet or failed.
Returns the identity of the connected peer if the TLS
handshake completed successfully. Returns None if the handshake is not
completed yet or failed.
Returns the identity of the connected peer if the TLS handshake completed successfully . Returns None if the handshake is not completed yet or failed .
pub fn peer(&self) -> Option<&AuthenticatedPeer> {
        match &self.0 {
            ConnectionState::Ready { peer, .. } => Some(peer),
            _ => None,
        }
    }
pub fn peer ( & self ) -> Option < & AuthenticatedPeer > { match & self . 0 { ConnectionState :: Ready { peer , .. } => Some ( peer ) , _ => None , } }
Returns the identity of the connected peer if the TLS
handshake completed successfully.
Returns the identity of the connected peer if the TLS handshake completed successfully .
&self
&self