usestd::net::SocketAddr;/// Handle to a running TCP or TLS server. Dropping the handle shuts down the server.
pubstructServerHandle{pub(crate)addr:Option<SocketAddr>,
pub(crate)_token:crate::util::shutdown::ShutdownToken,
}implServerHandle{/// Returns the local address to which this server is bound.
////// This can be useful, for example, when binding to port 0 to figure out which port was actually bound.
pubfnlocal_addr(&self)->Option<SocketAddr>{self.addr
}}