pub struct MacShortAddress(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: u16Implementations§
Source§impl ShortAddress
impl ShortAddress
Sourcepub const BROADCAST: ShortAddress
pub const BROADCAST: ShortAddress
An instance of ShortAddress that represents the broadcast address.
Sourcepub fn broadcast() -> ShortAddress
pub fn broadcast() -> ShortAddress
Creates an instance of ShortAddress that represents the broadcast address
Trait Implementations§
Source§impl Clone for ShortAddress
impl Clone for ShortAddress
Source§fn clone(&self) -> ShortAddress
fn clone(&self) -> ShortAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShortAddress
Source§impl Debug for ShortAddress
impl Debug for ShortAddress
impl Eq for ShortAddress
Source§impl Hash for ShortAddress
impl Hash for ShortAddress
Source§impl Hash for ShortAddress
impl Hash for ShortAddress
Source§impl PartialEq for ShortAddress
impl PartialEq for ShortAddress
impl StructuralPartialEq for ShortAddress
Source§impl TryRead<'_> for ShortAddress
impl TryRead<'_> for ShortAddress
Auto Trait Implementations§
impl Freeze for ShortAddress
impl RefUnwindSafe for ShortAddress
impl Send for ShortAddress
impl Sync for ShortAddress
impl Unpin for ShortAddress
impl UnsafeUnpin for ShortAddress
impl UnwindSafe for ShortAddress
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more