pub fn unused_port() -> u16Available on crate features
test-utils only.Expand description
A bit of hack to find an unused TCP port.
Does not guarantee that the given port is unused after the function exits, just that it was unused before the function started (i.e., it does not reserve a port).