pub struct ShortAddress(pub u16);Expand description
16-bit network address
Tuple Fields§
§0: u16Implementations§
Source§impl ShortAddress
impl ShortAddress
Sourcepub const COORDINATOR: Self
pub const COORDINATOR: Self
Network coordinator (Zigbee R22 3.6.1.1: the coordinator is always
assigned address 0x0000).
Sourcepub const BROADCAST_ALL: Self
pub const BROADCAST_ALL: Self
Broadcast to all devices in the PAN (3.6.5).
Sourcepub const BROADCAST_ROUTERS_AND_COORDINATOR: Self
pub const BROADCAST_ROUTERS_AND_COORDINATOR: Self
Broadcast to all routers and the coordinator (3.6.5).
Sourcepub const BROADCAST_RX_ON_WHEN_IDLE: Self
pub const BROADCAST_RX_ON_WHEN_IDLE: Self
Broadcast to all devices with RxOnWhenIdle = TRUE (3.6.5).
Sourcepub const BROADCAST_LOW_POWER_ROUTERS: Self
pub const BROADCAST_LOW_POWER_ROUTERS: Self
Broadcast to all low-power routers (3.6.5).
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
Source§impl Default for ShortAddress
impl Default for ShortAddress
impl Eq for ShortAddress
Source§impl From<u16> for ShortAddress
impl From<u16> 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<C: Default> TryRead<'_, C> for ShortAddress
impl<C: Default> TryRead<'_, C> 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