netwatch 0.19.0

Cross-platform monitoring for network interface changes
Documentation
1
2
3
4
5
6
7
8
9
10
//! IP address related utilities — fallback for platforms without `netdev`.

/// List of machine's IP addresses (stub).
#[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct LocalAddresses {
    /// Loopback addresses.
    pub loopback: Vec<std::net::IpAddr>,
    /// Regular addresses.
    pub regular: Vec<std::net::IpAddr>,
}