pub fn is_local_port_free<P: Into<Port>>(port: P) -> bool
Expand description

Returns whether a port is available on the localhost If the IP version is not specified, it defaults to IPv4. This happens when the port is specified as a number.