Skip to main content

watch_network_changes_with

Function watch_network_changes_with 

Source
pub fn watch_network_changes_with<F>(
    provider: F,
    period: Duration,
) -> NetworkWatch
where F: FnMut() -> Vec<IpAddr> + Send + 'static,
Expand description

Test seam: same watcher with an injected address provider and period.