pub fn addr(&self) -> Option<SocketAddr> {
        match self {
            Self::Tcp { addr, .. } => Some(*addr),
            _ => None,
        }
    }
/// Represents the socket address associated with the session, if it has one
Represents the socket address associated with the session, if it has one
Represents the socket address associated with the session if it has one
pub fn addr(&self) -> Option<SocketAddr> {
        match self {
            Self::Tcp { addr, .. } => Some(*addr),
            _ => None,
        }
    }
pub fn addr ( & self ) -> Option < SocketAddr > { match self { Self :: Tcp { addr , .. } => Some ( * addr ) , _ => None , } }
Represents the socket address associated with the session, if it has one
Represents the socket address associated with the session if it has one
&self