pub enum Event {
Show 22 variants
Ready(ControllerInfo),
InclusionStarted,
InclusionStopped,
ExclusionStarted,
ExclusionStopped,
NodeAdded {
node: NodeId,
},
NodeRemoved {
node: NodeId,
},
GrantSecurityClasses {
node: NodeId,
requested: Vec<SecurityClass>,
},
ValidateDsk {
node: NodeId,
dsk: String,
},
SecurityBootstrapped {
node: NodeId,
classes: Vec<SecurityClass>,
},
SecurityFailed {
node: NodeId,
reason: String,
},
InterviewStage {
node: NodeId,
stage: InterviewStage,
},
InterviewCompleted {
node: NodeId,
},
InterviewFailed {
node: NodeId,
reason: String,
},
NodeUpdated {
node: NodeId,
},
NodeStatus {
node: NodeId,
status: NodeStatus,
},
Value(ValueUpdate),
Route {
node: NodeId,
repeaters: Vec<NodeId>,
rssi: Option<i8>,
},
Command {
node: NodeId,
endpoint: u8,
command: Command,
},
FirmwareUpdateProgress {
node: NodeId,
sent: u16,
total: u16,
},
FirmwareUpdateFinished {
node: NodeId,
status: u8,
success: bool,
},
ProvisioningChanged {
entries: Vec<Entry>,
},
}Expand description
Something that happened on the network.
Variants§
Ready(ControllerInfo)
The controller is initialized.
InclusionStarted
Inclusion mode is on; press the node’s button.
InclusionStopped
Inclusion mode is off.
ExclusionStarted
Exclusion mode is on.
ExclusionStopped
Exclusion mode is off.
NodeAdded
A node joined (protocol part done; security and interview follow).
NodeRemoved
A node left or was removed.
GrantSecurityClasses
S2: the node asks for these keys; answer with Controller::grant_security_classes.
Fields
requested: Vec<SecurityClass>Requested classes, highest first.
ValidateDsk
S2: confirm the PIN (first five digits of the DSK) with Controller::validate_dsk.
SecurityBootstrapped
The key exchange finished; these classes are granted.
Fields
classes: Vec<SecurityClass>Granted classes, highest first (empty: included without security).
SecurityFailed
The key exchange failed; the node is included without security.
InterviewStage
The interview reached a new stage.
InterviewCompleted
The interview finished.
InterviewFailed
The interview failed for now; it is retried.
NodeUpdated
A node’s record changed (new metadata); re-read it with Controller::node.
NodeStatus
Awake, asleep, alive or dead.
Value(ValueUpdate)
A value reported by a node.
Route
A transmission reached the node along this route.
Fields
Command
A command a node sent that the stack did not turn into a value.
Fields
FirmwareUpdateProgress
Fragments sent so far in a firmware update.
FirmwareUpdateFinished
A firmware update ended.
Fields
ProvisioningChanged
The provisioning list changed.