#[repr(C)]pub struct MacAddress {
pub addr: [u8; 32],
}Expand description
Network MAC Address
This type encapsulates a single networking media access control address (MAC). It is a simple 32 bytes buffer with no special alignment. Note that no comparison function are defined by default, since trailing bytes of the address might be random.
The interpretation of the content differs depending on the protocol it is used with. See each documentation for details. In most cases this contains an Ethernet address.
Fields§
§addr: [u8; 32]Trait Implementations§
Source§impl Clone for MacAddress
impl Clone for MacAddress
impl Copy for MacAddress
Source§impl Debug for MacAddress
impl Debug for MacAddress
impl Eq for MacAddress
Source§impl Hash for MacAddress
impl Hash for MacAddress
Source§impl Ord for MacAddress
impl Ord for MacAddress
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 PartialEq for MacAddress
impl PartialEq for MacAddress
Source§impl PartialOrd for MacAddress
impl PartialOrd 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