Function port_check::free_local_port_in_range
source · pub fn free_local_port_in_range<P: Into<Ports<R>>, R: RangeBounds<u16> + Iterator<Item = u16>>(
port_range: P
) -> Option<u16>
Expand description
Returns an available localhost port within the specified range. If the IP version is not specified, it defaults to IPv4. This happens when the port range is specified as a range.