pub struct Interface {
pub index: i64,
pub name: String,
pub administrative_state: String,
pub operational_state: String,
pub carrier_state: String,
pub address_state: String,
pub ipv4_address_state: String,
pub ipv6_address_state: String,
pub online_state: Option<String>,
pub network_file: Option<String>,
pub required_for_online: Option<bool>,
}Expand description
Per-interface information returned by io.systemd.Network.Describe.
Fields§
§index: i64Kernel interface index.
name: StringPrimary interface name (e.g. “eth0”).
administrative_state: StringAdministrative state (configured, configuring, pending, …).
operational_state: StringOperational state (routable, degraded, carrier, …).
carrier_state: StringCarrier state (carrier, no-carrier, …).
address_state: StringCombined address state across all address families.
ipv4_address_state: StringIPv4-specific address state.
ipv6_address_state: StringIPv6-specific address state.
online_state: Option<String>Overall online state (online, offline, partial); absent when unknown.
network_file: Option<String>Path to the applied .network configuration file; absent for unmanaged interfaces.
required_for_online: Option<bool>Whether this interface is required for the system to be considered online.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interface
impl<'de> Deserialize<'de> for Interface
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
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin for Interface
impl UnwindSafe for Interface
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