pub struct NodeDescriptor {
pub byte0: u8,
pub byte1: u8,
pub mac_capabilities: u8,
pub manufacturer_code: u16,
pub max_buffer_size: u8,
pub max_incoming_transfer: u16,
pub server_mask: u16,
pub max_outgoing_transfer: u16,
pub descriptor_capability: u8,
}Expand description
The node descriptor (2.3.2.3).
Fields§
§byte0: u8Logical type (bits 0-2), complex/user descriptor flags (bits 3-4).
byte1: u8APS flags (bits 0-2) and frequency band (bits 3-7).
mac_capabilities: u8MAC capability flags.
manufacturer_code: u16Manufacturer code.
max_buffer_size: u8Maximum NSDU size.
max_incoming_transfer: u16Maximum incoming transfer size.
server_mask: u16Server mask (bits 9-15: stack compliance revision).
max_outgoing_transfer: u16Maximum outgoing transfer size.
descriptor_capability: u8Descriptor capability field.
Implementations§
Source§impl NodeDescriptor
impl NodeDescriptor
Sourcepub fn logical_type(&self) -> LogicalType
pub fn logical_type(&self) -> LogicalType
The device’s logical type.
Sourcepub fn rx_on_when_idle(&self) -> bool
pub fn rx_on_when_idle(&self) -> bool
The receiver is on when idle (not a sleepy device).
Sourcepub fn mains_powered(&self) -> bool
pub fn mains_powered(&self) -> bool
Mains powered.
Sourcepub fn stack_compliance_revision(&self) -> u8
pub fn stack_compliance_revision(&self) -> u8
The stack compliance revision (21 and later for Zigbee 3.0 devices; 0 for pre-R21 devices).
Trait Implementations§
Source§impl Clone for NodeDescriptor
impl Clone for NodeDescriptor
impl Copy for NodeDescriptor
Source§impl Debug for NodeDescriptor
impl Debug for NodeDescriptor
Source§impl Default for NodeDescriptor
impl Default for NodeDescriptor
Source§impl<'de> Deserialize<'de> for NodeDescriptor
impl<'de> Deserialize<'de> for NodeDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeDescriptor
Source§impl PartialEq for NodeDescriptor
impl PartialEq for NodeDescriptor
Source§impl Serialize for NodeDescriptor
impl Serialize for NodeDescriptor
impl StructuralPartialEq for NodeDescriptor
Auto Trait Implementations§
impl Freeze for NodeDescriptor
impl RefUnwindSafe for NodeDescriptor
impl Send for NodeDescriptor
impl Sync for NodeDescriptor
impl Unpin for NodeDescriptor
impl UnsafeUnpin for NodeDescriptor
impl UnwindSafe for NodeDescriptor
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