Struct nispor::Iface

source ·
#[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 Clone for Iface

source§

fn clone(&self) -> Iface

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Iface

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Iface

source§

fn default() -> Iface

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Iface

source§

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

source§

fn eq(&self, other: &Iface) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Iface

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Iface

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,