Skip to main content

Module common

Module common 

Source

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_summary call 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_checked for 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.