pub enum Ieee802154Address {
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]) -> Address
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<Ipv6Addr>
pub fn as_link_local_address(&self) -> Option<Ipv6Addr>
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: Address) -> HardwareAddress
fn from(addr: Address) -> HardwareAddress
Converts to this type from the input type.
Source§impl Ord for Address
impl Ord for Address
Source§impl PartialOrd for Address
impl PartialOrd for Address
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)