pub struct MacAddress(pub [u8; 6]);Expand description
48-bit MAC address in network order (most-significant byte first).
Tuple Fields§
§0: [u8; 6]Implementations§
Trait Implementations§
Source§impl Clone for MacAddress
impl Clone for MacAddress
Source§fn clone(&self) -> MacAddress
fn clone(&self) -> MacAddress
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 moreimpl Copy for MacAddress
Source§impl Debug for MacAddress
impl Debug for MacAddress
Source§impl Display for MacAddress
impl Display for MacAddress
impl Eq for MacAddress
Source§impl Hash for MacAddress
impl Hash for MacAddress
Source§impl PartialEq for MacAddress
impl PartialEq for MacAddress
Source§fn eq(&self, other: &MacAddress) -> bool
fn eq(&self, other: &MacAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MacAddress
impl Serialize for MacAddress
impl StructuralPartialEq for MacAddress
Auto Trait Implementations§
impl Freeze for MacAddress
impl RefUnwindSafe for MacAddress
impl Send for MacAddress
impl Sync for MacAddress
impl Unpin for MacAddress
impl UnsafeUnpin for MacAddress
impl UnwindSafe for MacAddress
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