pub struct InterfaceInfo {
pub name: String,
pub ipv4_addrs: Vec<Ipv4Addr>,
pub is_up: bool,
pub is_multicast: bool,
pub is_loopback: bool,
}Expand description
Information about a single network interface.
Fields§
§name: StringInterface name (e.g. "eth0", "en0", "enp3s0").
ipv4_addrs: Vec<Ipv4Addr>All IPv4 addresses assigned to this interface.
is_up: boolInterface is UP (administratively enabled and carrier present).
is_multicast: boolInterface supports multicast.
is_loopback: boolInterface is a loopback (e.g. lo, lo0).
Trait 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 · 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 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