Skip to main content

free_port

Function free_port 

Source
pub fn free_port() -> u16
Expand description

Pick a free TCP port by binding to :0 and reading back the assigned port.