// SPDX-License-Identifier: MIT
//! Enumeration of local network interfaces.
use crate;
/// A network interface as reported by libpcap.
/// Enumerate available network interfaces.
///
/// # Errors
///
/// Returns [`Error::Capture`] if libpcap fails to enumerate devices (for
/// example, on Linux this can happen when the caller lacks
/// `CAP_NET_RAW`).