pub async fn is_port_available(port: u16) -> boolExpand description
Check if a port is available.
NOTE: This has a TOCTOU race – the port may be taken between the check and
actual use. Prefer bind_available_port when you need to guarantee the port
stays reserved.