Struct w5500_ll::net::Eui48Addr [−][src]
Expand description
EUI-48 MAC address struct.
Can be instantiated with Eui48Addr::new
.
This is an EUI-48 MAC address (previously called MAC-48).
Fields
octets: [u8; 6]
Octets of the MAC address.
Implementations
Creates a new EUI-48 MAC address from six eight-bit octets.
The result will represent the EUI-48 MAC address
a
:b
:c
:d
:e
:f
.
Examples
use w5500_ll::net::Eui48Addr;
let addr = Eui48Addr::new(0x00, 0x00, 0x5E, 0x00, 0x00, 0x00);
An EUI-48 MAC address representing an unspecified address: 00:00:00:00:00:00
Examples
use w5500_ll::net::Eui48Addr;
let addr = Eui48Addr::UNSPECIFIED;
assert_eq!(addr, Eui48Addr::new(0x00, 0x00, 0x00, 0x00, 0x00, 0x00));
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Eui48Addr
impl UnwindSafe for Eui48Addr
Blanket Implementations
Mutably borrows from an owned value. Read more