pub fn has_ipv4<F: Fn(Ipv4Addr) -> bool>(
interface: &str,
wanted: F,
) -> Result<bool, Error>Expand description
Returns whether interface has an IPv4 address that matches wanted.
§Errors
Returns an error if the interface addresses can’t be read.