pub struct InterfaceInfo {
pub id: InterfaceId,
pub name: String,
pub kind: InterfaceKind,
pub mac: Option<EthernetAddress>,
pub ipv4: Option<Ipv4InterfaceConfig>,
pub mtu: usize,
pub flags: InterfaceFlags,
pub metric: u32,
}Expand description
Public snapshot of a network interface.
Fields§
§id: InterfaceId§name: String§kind: InterfaceKind§mac: Option<EthernetAddress>§ipv4: Option<Ipv4InterfaceConfig>§mtu: usize§flags: InterfaceFlags§metric: u32Trait Implementations§
Source§impl Clone for InterfaceInfo
impl Clone for InterfaceInfo
Source§fn clone(&self) -> InterfaceInfo
fn clone(&self) -> InterfaceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InterfaceInfo
impl RefUnwindSafe for InterfaceInfo
impl Send for InterfaceInfo
impl Sync for InterfaceInfo
impl Unpin for InterfaceInfo
impl UnsafeUnpin for InterfaceInfo
impl UnwindSafe for InterfaceInfo
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