Picks a free port, that is unused on both TCP and UDP.
Usage:
use portpicker::pick_unused_port;
let port: u16 = pick_unused_port().expect("No ports free");
Pick a free unused port
Picks a free port, that is unused on both TCP and UDP.
Usage:
use portpicker::pick_unused_port;
let port: u16 = pick_unused_port().expect("No ports free");
Pick a free unused port
The Unlicense