pub enum MacAddress {
Eui48([u8; 6]),
Eui64([u8; 8]),
}Expand description
MAC address used to identify a DLEP destination. RFC 8175 §13.7 permits either EUI-48 (6 octets) or EUI-64 (8 octets) on the wire and requires all destination MACs in a single session to share one format (consistent with the modem’s link-layer format).
Variants§
Implementations§
Source§impl MacAddress
impl MacAddress
Sourcepub const BROADCAST_EUI48: Self
pub const BROADCAST_EUI48: Self
6-octet broadcast (FF:FF:FF:FF:FF:FF). Use this in EUI-48 sessions.
Sourcepub const BROADCAST_EUI64: Self
pub const BROADCAST_EUI64: Self
8-octet broadcast. Use this in EUI-64 sessions.
Sourcepub const BROADCAST: Self = Self::BROADCAST_EUI48
pub const BROADCAST: Self = Self::BROADCAST_EUI48
Alias for Self::BROADCAST_EUI48; preserves the M3-era name.
pub const fn new_eui48(octets: [u8; 6]) -> Self
pub const fn new_eui64(octets: [u8; 8]) -> Self
Trait Implementations§
Source§impl Clone for MacAddress
impl Clone for MacAddress
impl 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 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