pub enum Address {
Absent,
Short([u8; 2]),
Extended([u8; 8]),
}Expand description
An IEEE 802.15.4 address.
Variants§
Absent
The address is absent.
Short([u8; 2])
A short address.
Extended([u8; 8])
An extended address.
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.
Sourcepub fn is_extended(&self) -> bool
pub fn is_extended(&self) -> bool
Query whether the address is extended.
Trait Implementations§
Source§impl From<Address> for AddressingMode
impl From<Address> for AddressingMode
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