1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use fmt;
/// Current host-level network reachability reported by the monitor.
///
/// Evidence differs by platform: Windows uses Network List Manager's Internet
/// connectivity flags; macOS uses netwatch's default-route and IP-capability
/// facts; Linux checks operational interfaces and default routes. These are
/// host observations, not probes of a particular server, DNS service, or URL.
/// Always handle errors from the actual network operation.
///
/// An absent `NetworkSnapshot::reachability` means no current observation, not
/// `Unavailable`. `Stopped`, `Starting`, `Failed`, and `Closed` describe the
/// monitor's lifecycle and must not be converted into a network disconnection.