Select

Function Select 

Source
pub fn Select() -> u16
Expand description

Select an unused port for the localhost server.

Finds an available port on localhost and returns it.

§Returns

Returns the selected port number.

§Panics

Panics if port selection fails.