Struct netdev::device::NetworkDevice
source · pub struct NetworkDevice {
pub mac_addr: MacAddr,
pub ipv4: Vec<Ipv4Addr>,
pub ipv6: Vec<Ipv6Addr>,
}
Expand description
Structure of NetworkDevice information
Fields§
§mac_addr: MacAddr
MAC address of the device
ipv4: Vec<Ipv4Addr>
List of IPv4 address of the device
ipv6: Vec<Ipv6Addr>
List of IPv6 address of the device
Implementations§
source§impl NetworkDevice
impl NetworkDevice
sourcepub fn new() -> NetworkDevice
pub fn new() -> NetworkDevice
Construct a new NetworkDevice instance
Trait Implementations§
source§impl Clone for NetworkDevice
impl Clone for NetworkDevice
source§fn clone(&self) -> NetworkDevice
fn clone(&self) -> NetworkDevice
Returns a copy 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 moresource§impl Debug for NetworkDevice
impl Debug for NetworkDevice
source§impl Hash for NetworkDevice
impl Hash for NetworkDevice
source§impl PartialEq for NetworkDevice
impl PartialEq for NetworkDevice
source§fn eq(&self, other: &NetworkDevice) -> bool
fn eq(&self, other: &NetworkDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NetworkDevice
impl StructuralPartialEq for NetworkDevice
Auto Trait Implementations§
impl Freeze for NetworkDevice
impl RefUnwindSafe for NetworkDevice
impl Send for NetworkDevice
impl Sync for NetworkDevice
impl Unpin for NetworkDevice
impl UnwindSafe for NetworkDevice
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