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 Ord for MacAddr
impl Ord for MacAddr
Source§impl PartialOrd for MacAddr
impl PartialOrd 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 6 bytes