#[non_exhaustive]pub struct Iface {Show 37 fields
pub name: String,
pub index: u32,
pub iface_type: IfaceType,
pub state: IfaceState,
pub mtu: i64,
pub min_mtu: Option<i64>,
pub max_mtu: Option<i64>,
pub flags: Vec<IfaceFlag>,
pub ipv4: Option<Ipv4Info>,
pub ipv6: Option<Ipv6Info>,
pub mac_address: String,
pub permanent_mac_address: String,
pub controller: Option<String>,
pub controller_type: Option<ControllerType>,
pub link_netnsid: Option<i32>,
pub ethtool: Option<EthtoolInfo>,
pub bond: Option<BondInfo>,
pub bond_subordinate: Option<BondSubordinateInfo>,
pub bridge: Option<BridgeInfo>,
pub bridge_vlan: Option<Vec<BridgeVlanEntry>>,
pub bridge_port: Option<BridgePortInfo>,
pub tun: Option<TunInfo>,
pub vlan: Option<VlanInfo>,
pub vxlan: Option<VxlanInfo>,
pub veth: Option<VethInfo>,
pub vrf: Option<VrfInfo>,
pub vrf_subordinate: Option<VrfSubordinateInfo>,
pub mac_vlan: Option<MacVlanInfo>,
pub mac_vtap: Option<MacVtapInfo>,
pub sriov: Option<SriovInfo>,
pub sriov_vf: Option<VfInfo>,
pub ipoib: Option<IpoibInfo>,
pub mptcp: Option<Vec<MptcpAddress>>,
pub macsec: Option<MacSecInfo>,
pub hsr: Option<HsrInfo>,
pub xfrm: Option<XfrmInfo>,
pub driver: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
§index: u32
§iface_type: IfaceType
§state: IfaceState
§mtu: i64
§min_mtu: Option<i64>
§max_mtu: Option<i64>
§flags: Vec<IfaceFlag>
§ipv4: Option<Ipv4Info>
§ipv6: Option<Ipv6Info>
§mac_address: String
§permanent_mac_address: String
§controller: Option<String>
§controller_type: Option<ControllerType>
§link_netnsid: Option<i32>
§ethtool: Option<EthtoolInfo>
§bond: Option<BondInfo>
§bond_subordinate: Option<BondSubordinateInfo>
§bridge: Option<BridgeInfo>
§bridge_vlan: Option<Vec<BridgeVlanEntry>>
§bridge_port: Option<BridgePortInfo>
§tun: Option<TunInfo>
§vlan: Option<VlanInfo>
§vxlan: Option<VxlanInfo>
§veth: Option<VethInfo>
§vrf: Option<VrfInfo>
§vrf_subordinate: Option<VrfSubordinateInfo>
§mac_vlan: Option<MacVlanInfo>
§mac_vtap: Option<MacVtapInfo>
§sriov: Option<SriovInfo>
§sriov_vf: Option<VfInfo>
§ipoib: Option<IpoibInfo>
§mptcp: Option<Vec<MptcpAddress>>
§macsec: Option<MacSecInfo>
§hsr: Option<HsrInfo>
§xfrm: Option<XfrmInfo>
§driver: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Iface
impl<'de> Deserialize<'de> for Iface
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Iface
impl PartialEq for Iface
impl Eq for Iface
impl StructuralPartialEq for Iface
Auto Trait Implementations§
impl Freeze for Iface
impl RefUnwindSafe for Iface
impl Send for Iface
impl Sync for Iface
impl Unpin for Iface
impl UnwindSafe for Iface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more