1 2 3 4 5 6 7 8 9 10 11 12 13
/// A network interface. #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[derive(Debug, Clone, PartialEq, Eq)] pub struct NetworkDevice { /// Interface name. pub name: String, /// Bound driver. pub driver: Option<String>, /// Parent PCI address. pub pci_address: Option<String>, /// Whether the interface is virtual. pub virtual_device: bool, }