pub fn probe_hosts_parallel<F>(
hosts: &[DiscoveredHost],
timeout_secs: u64,
on_progress: F,
) -> Vec<HostProbeResult>Expand description
Probe multiple hosts in parallel.
Uses rayon’s parallel iterator to probe hosts concurrently, calling the progress callback as each probe completes.
§Arguments
hosts- Slice of discovered hosts to probetimeout_secs- Connection timeout per hoston_progress- Callback called after each host completes: (completed, total, host_name)
§Returns
Vector of probe results for all hosts.