pub fn listen(&self) -> Option<Listen> {
        self.listen_address
            .or(self
                .public_address
                .as_ref()
                .and_then(|address| address.to_socketaddr()))
            .map(|addr| Listen::new(addr, self.protocol))
    }
/// Returns the listener configuration, if the options defining it
/// were set.
Returns the listener configuration, if the options defining it
were set.
Returns the listener configuration if the options defining it were set .
pub fn listen(&self) -> Option<Listen> {
        self.listen_address
            .or(self
                .public_address
                .as_ref()
                .and_then(|address| address.to_socketaddr()))
            .map(|addr| Listen::new(addr, self.protocol))
    }
pub fn listen ( & self ) -> Option < Listen > { self . listen_address . or ( self . public_address . as_ref ( ) . and_then ( | address | address . to_socketaddr ( ) ) ) . map ( | addr | Listen :: new ( addr , self . protocol ) ) }
Returns the listener configuration, if the options defining it
were set.
Returns the listener configuration if the options defining it were set .
&self
&self