pub struct MacAddr(pub [u8; 6]);Expand description
MAC address for network interface.
It is returned by NetworkData::mac_address.
Tuple Fields§
§0: [u8; 6]Implementations§
Source§impl MacAddr
impl MacAddr
Sourcepub const UNSPECIFIED: Self
pub const UNSPECIFIED: Self
A MacAddr with all bytes set to 0.
Sourcepub fn is_unspecified(&self) -> bool
pub fn is_unspecified(&self) -> bool
Checks if this MacAddr has all bytes equal to 0.
Trait Implementations§
impl Copy for MacAddr
impl Eq for MacAddr
Source§impl Ord for MacAddr
impl Ord for MacAddr
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MacAddr
impl PartialOrd for MacAddr
impl StructuralPartialEq for MacAddr
Auto Trait Implementations§
impl Freeze for MacAddr
impl RefUnwindSafe for MacAddr
impl Send for MacAddr
impl Sync for MacAddr
impl Unpin for MacAddr
impl UnsafeUnpin for MacAddr
impl UnwindSafe for MacAddr
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