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§
source§impl PartialEq for MacAddr
impl PartialEq for MacAddr
impl Copy for MacAddr
impl Eq 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 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