pub struct MacAddr(pub [u8; 6]);
Expand description
MAC address for network interface.
It is returned by NetworkExt::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
impl StructuralEq for MacAddr
impl StructuralPartialEq for MacAddr
Auto Trait Implementations§
impl RefUnwindSafe for MacAddr
impl Send for MacAddr
impl Sync for MacAddr
impl Unpin for MacAddr
impl UnwindSafe for MacAddr
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more