Struct ieee802154::mac::frame::header::ShortAddress
source · [−]pub struct ShortAddress(pub u16);
Expand description
A 16-bit short address
Short address assigned to a device during association, used to identify the device in the PAN.
Example
use ieee802154::mac::ShortAddress;
let short_address = ShortAddress(0x0123);
Tuple Fields
0: u16
Implementations
Trait Implementations
sourceimpl Clone for ShortAddress
impl Clone for ShortAddress
sourcefn clone(&self) -> ShortAddress
fn clone(&self) -> ShortAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShortAddress
impl Debug for ShortAddress
sourceimpl Hash for ShortAddress
impl Hash for ShortAddress
sourceimpl Hash for ShortAddress
impl Hash for ShortAddress
sourceimpl PartialEq<ShortAddress> for ShortAddress
impl PartialEq<ShortAddress> for ShortAddress
sourcefn eq(&self, other: &ShortAddress) -> bool
fn eq(&self, other: &ShortAddress) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryRead<'_, ()> for ShortAddress
impl TryRead<'_, ()> for ShortAddress
sourceimpl TryWrite<()> for ShortAddress
impl TryWrite<()> for ShortAddress
impl Copy for ShortAddress
impl Eq for ShortAddress
impl StructuralEq for ShortAddress
impl StructuralPartialEq for ShortAddress
Auto Trait Implementations
impl RefUnwindSafe for ShortAddress
impl Send for ShortAddress
impl Sync for ShortAddress
impl Unpin for ShortAddress
impl UnwindSafe for ShortAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more