pub struct NetworkInterfaceInfo {
pub name: String,
pub mac_address: Option<String>,
pub addresses: Vec<String>,
}Expand description
Network interface information.
Fields§
§name: StringInterface display name.
mac_address: Option<String>MAC address in canonical form when available.
addresses: Vec<String>IPv4/IPv6 addresses.
Trait Implementations§
Source§impl Clone for NetworkInterfaceInfo
impl Clone for NetworkInterfaceInfo
Source§fn clone(&self) -> NetworkInterfaceInfo
fn clone(&self) -> NetworkInterfaceInfo
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 NetworkInterfaceInfo
impl RefUnwindSafe for NetworkInterfaceInfo
impl Send for NetworkInterfaceInfo
impl Sync for NetworkInterfaceInfo
impl Unpin for NetworkInterfaceInfo
impl UnsafeUnpin for NetworkInterfaceInfo
impl UnwindSafe for NetworkInterfaceInfo
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