pub enum Indication {
Show 13 variants
Reset {
reason: u8,
transport: u8,
product: u8,
major: u8,
minor: u8,
hw: u8,
},
DataConfirm {
status: u8,
endpoint: u8,
trans_id: u8,
},
Incoming(Box<IncomingMsg>),
StateChange {
state: u8,
},
DeviceAnnounce {
source: NodeId,
nwk: NodeId,
ieee: Ieee,
capabilities: u8,
},
SourceRoute {
source: NodeId,
relays: Vec<NodeId>,
},
Beacons(Vec<Beacon>),
DiscoveryDone {
status: u8,
},
Leave {
nwk: NodeId,
ieee: Ieee,
request: bool,
remove_children: bool,
rejoin: bool,
},
TcDevice {
nwk: NodeId,
ieee: Ieee,
parent: NodeId,
},
PermitJoin {
duration: u8,
},
ZdoMessage {
source: NodeId,
broadcast: bool,
cluster: u16,
secured: bool,
tsn: u8,
mac_destination: NodeId,
data: Vec<u8>,
},
Commissioning {
status: u8,
mode: u8,
remaining: u8,
},
}Expand description
An asynchronous frame from the NCP.
Variants§
Reset
SYS_RESET_IND.
Fields
§
product: u8Product (crate::ids::product).
DataConfirm
AF_DATA_CONFIRM.
Incoming(Box<IncomingMsg>)
AF_INCOMING_MSG or AF_INCOMING_MSG_EXT.
StateChange
ZDO_STATE_CHANGE_IND.
Fields
§
state: u8The new state (crate::ids::state).
DeviceAnnounce
ZDO_END_DEVICE_ANNCE_IND.
Fields
SourceRoute
ZDO_SRC_RTG_IND.
Beacons(Vec<Beacon>)
ZDO_BEACON_NOTIFY_IND.
DiscoveryDone
ZDO_NWK_DISCOVERY_CNF.
Leave
ZDO_LEAVE_IND.
Fields
TcDevice
ZDO_TC_DEV_IND.
PermitJoin
ZDO_PERMIT_JOIN_IND.
ZdoMessage
ZDO_MSG_CB_INCOMING: a raw ZDO frame.
Fields
Commissioning
APP_CNF_BDB_COMMISSIONING_NOTIFICATION.
Implementations§
Source§impl Indication
impl Indication
Sourcepub fn decode(frame: &Frame) -> Result<Indication, DecodeError>
pub fn decode(frame: &Frame) -> Result<Indication, DecodeError>
Decode an asynchronous frame.
Trait Implementations§
Source§impl Clone for Indication
impl Clone for Indication
Source§impl Debug for Indication
impl Debug for Indication
impl Eq for Indication
Source§impl PartialEq for Indication
impl PartialEq for Indication
impl StructuralPartialEq for Indication
Auto Trait Implementations§
impl Freeze for Indication
impl RefUnwindSafe for Indication
impl Send for Indication
impl Sync for Indication
impl Unpin for Indication
impl UnsafeUnpin for Indication
impl UnwindSafe for Indication
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