portpicker

Crates.ioportpicker
lib.rsportpicker
version0.1.1
sourcesrc
created_at2019-02-06 00:51:45.506737
updated_at2021-06-18 12:39:03.160241
descriptionPick a free unused port
homepage
repositoryhttps://github.com/Dentosal/portpicker-rs
max_upload_size
id112995
size5,084
core (github:3a-technologies:core)

documentation

README

Portpicker-rs - Pick a free unused port

Picks a free port, that is unused on both TCP and UDP.

Usage:

portpicker::pick_unused_port().expect("No ports free")
Commit count: 8

cargo fmt