Function ValidatePort
Source pub fn ValidatePort(Port: u16) -> Result<()>
Expand description
Validate port number
Ensures a port number is within the valid range.
§Arguments
port - The port number to validate
§Errors
Returns an error if the port is not in the valid range (1-65535).