pub struct Network { /* private fields */ }Expand description
The parameters of a ZLL network.
Implementations§
Source§impl Network
impl Network
Sourcepub fn new(
zigbee_network: Network,
security_algorithm: SecurityAlgorithmData,
eui64: Eui64,
node_id: NodeId,
state: State,
node_type: Type,
number_sub_devices: u8,
total_group_identifiers: u8,
rssi_correction: u8,
) -> Self
pub fn new( zigbee_network: Network, security_algorithm: SecurityAlgorithmData, eui64: Eui64, node_id: NodeId, state: State, node_type: Type, number_sub_devices: u8, total_group_identifiers: u8, rssi_correction: u8, ) -> Self
Create a new ZLL network.
Sourcepub const fn zigbee_network(&self) -> &Network
pub const fn zigbee_network(&self) -> &Network
Return the parameters of a Zigbee network.
Sourcepub const fn security_algorithm(&self) -> &SecurityAlgorithmData
pub const fn security_algorithm(&self) -> &SecurityAlgorithmData
Return the data associated with the ZLL security algorithm.
Sourcepub const fn number_sub_devices(&self) -> u8
pub const fn number_sub_devices(&self) -> u8
Return the number of sub devices.
Sourcepub const fn total_group_identifiers(&self) -> u8
pub const fn total_group_identifiers(&self) -> u8
Return the total number of group identifiers.
Sourcepub const fn rssi_correction(&self) -> u8
pub const fn rssi_correction(&self) -> u8
Return the RSSI correction value.
Trait Implementations§
impl Eq for Network
Source§impl FromLeStream for Network
impl FromLeStream for Network
Source§fn from_le_stream<__LeStreamBytesIterator>(
bytes: __LeStreamBytesIterator,
) -> Option<Self>
fn from_le_stream<__LeStreamBytesIterator>( bytes: __LeStreamBytesIterator, ) -> Option<Self>
Parses a value from the front of a little-endian byte stream. Read more
impl StructuralPartialEq for Network
Source§impl ToLeStream for Network
impl ToLeStream for Network
Source§type Iter = Chain<Chain<Chain<Chain<Chain<Chain<Chain<Chain<<Network as ToLeStream>::Iter, <SecurityAlgorithmData as ToLeStream>::Iter>, <MacAddr8 as ToLeStream>::Iter>, <u16 as ToLeStream>::Iter>, <u16 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>
type Iter = Chain<Chain<Chain<Chain<Chain<Chain<Chain<Chain<<Network as ToLeStream>::Iter, <SecurityAlgorithmData as ToLeStream>::Iter>, <MacAddr8 as ToLeStream>::Iter>, <u16 as ToLeStream>::Iter>, <u16 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>, <u8 as ToLeStream>::Iter>
Iterator returned by
to_le_stream.Source§fn to_le_stream(self) -> <Self as ToLeStream>::Iter
fn to_le_stream(self) -> <Self as ToLeStream>::Iter
Returns an iterator over the little-endian byte representation. Read more
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnsafeUnpin for Network
impl UnwindSafe for Network
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