Enum smoltcp::wire::ieee802154::Address
source · pub enum Address {
Absent,
Short([u8; 2]),
Extended([u8; 8]),
}
Expand description
A IEEE 802.15.4 address.
Variants§
Implementations§
source§impl Address
impl Address
sourcepub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
Query whether the address is an unicast address.
sourcepub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Query whether this address is the broadcast address.
pub fn from_bytes(a: &[u8]) -> Self
pub const fn as_bytes(&self) -> &[u8] ⓘ
sourcepub fn as_eui_64(&self) -> Option<[u8; 8]>
pub fn as_eui_64(&self) -> Option<[u8; 8]>
Convert the extended address to an Extended Unique Identifier (EUI-64)
sourcepub fn as_link_local_address(&self) -> Option<Ipv6Address>
pub fn as_link_local_address(&self) -> Option<Ipv6Address>
Convert an extended address to a link-local IPv6 address using the EUI-64 format from RFC2464.
Trait Implementations§
source§impl From<Address> for HardwareAddress
impl From<Address> for HardwareAddress
source§fn from(addr: Ieee802154Address) -> Self
fn from(addr: Ieee802154Address) -> Self
Converts to this type from the input type.
source§impl From<Address> for RawHardwareAddress
impl From<Address> for RawHardwareAddress
source§fn from(addr: Ieee802154Address) -> Self
fn from(addr: Ieee802154Address) -> Self
Converts to this type from the input type.
source§impl Ord for Address
impl Ord for Address
source§impl PartialEq<Address> for Address
impl PartialEq<Address> for Address
source§impl PartialOrd<Address> for Address
impl PartialOrd<Address> for Address
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more