testcontainer/port
Types
Values
pub fn tcp(number: Int) -> Port
Creates a TCP port. Numbers outside 1..=65535 will be rejected later
by start/1. For up-front validation, prefer try_tcp/1.
pub fn try_tcp(number: Int) -> Result(Port, error.Error)
Validated TCP port constructor.
pub fn try_udp(number: Int) -> Result(Port, error.Error)
Validated UDP port constructor.