#[non_exhaustive]pub struct NetworkDevice {
pub mac_addr: MacAddr,
pub ipv4: Vec<Ipv4Addr>,
pub ipv6: Vec<Ipv6Addr>,
}Expand description
Address information for a related network device.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mac_addr: MacAddrLink-layer address of the related device.
ipv4: Vec<Ipv4Addr>IPv4 addresses assigned to the device.
ipv6: Vec<Ipv6Addr>IPv6 addresses assigned to the device.
Implementations§
Source§impl NetworkDevice
impl NetworkDevice
pub fn new() -> NetworkDevice
Trait Implementations§
Source§impl Clone for NetworkDevice
impl Clone for NetworkDevice
Source§fn clone(&self) -> NetworkDevice
fn clone(&self) -> NetworkDevice
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 moreSource§impl Debug for NetworkDevice
impl Debug for NetworkDevice
Source§impl Default for NetworkDevice
impl Default for NetworkDevice
impl Eq for NetworkDevice
Source§impl From<NetworkDevice> for NetworkDevice
impl From<NetworkDevice> for NetworkDevice
Source§fn from(value: NetworkDevice) -> Self
fn from(value: NetworkDevice) -> Self
Converts to this type from the input type.
Source§impl Hash for NetworkDevice
impl Hash for NetworkDevice
Source§impl PartialEq for NetworkDevice
impl PartialEq 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 UnsafeUnpin 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