Skip to main content

provide_port

Function provide_port 

Source
pub fn provide_port() -> u16
Expand description

Get a localhost port for a test listener, held by reserve_port: unique across concurrent processes that all allocate their ports through reserve_port, within that function’s limits.