Skip to main content

parse_ports_checked

Function parse_ports_checked 

Source
pub fn parse_ports_checked(input: Option<&str>) -> Result<Option<Vec<u16>>>
Expand description

Strict parser for user input — rejects any malformed token instead of silently discarding it. Some(None) means the input was absent/empty; Err(Error::InvalidInput(..)) means the user typed something that couldn’t be interpreted.