Constants§
- DEFAULT_
CONCURRENCY - DEFAULT_
DNS_ TIMEOUT_ MS - DEFAULT_
PING_ TIMEOUT_ MS - DEFAULT_
PORTS - DEFAULT_
SCAN_ TIMEOUT_ MS - DEFAULT_
SUBNET - MAX_
MDNS_ TIMEOUT_ MS - Longest an mDNS browse will run.
- MAX_
PING_ COUNT - Most pings a single
ping_host_summarycall will send. - MAX_
PORTS_ PER_ SCAN
Functions§
- default_
ipv4_ subnet_ string - default_
ports - detect_
default_ ipv4_ addr - detect_
default_ ipv4_ subnet - parse_
ports - Lenient parser used by internal defaults — silently drops invalid tokens.
Prefer
parse_ports_checkedfor user input so typos are surfaced. - parse_
ports_ checked - 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. - sanitize_
for_ terminal - Replace every control character with
'.'. - validate_
ports - Validate an already-parsed port list.