pub fn port(&self) -> u16 {
        self.listener
            .local_addr()
            .expect("failed to get local_addr")
            .port()
    }
/// Returns the port this server is running on.
Returns the port this server is running on.
Returns the port this server is running on .
pub fn port(&self) -> u16 {
        self.listener
            .local_addr()
            .expect("failed to get local_addr")
            .port()
    }
pub fn port ( & self ) -> u16 { self . listener . local_addr ( ) . expect ( " " ) . port ( ) }
Returns the port this server is running on.
Returns the port this server is running on .
&self
&self