pub enum Command {
Show 36 variants
Version {
desired: u8,
},
GetConfigurationValue {
config_id: u8,
},
SetConfigurationValue {
config_id: u8,
value: u16,
},
AddEndpoint {
endpoint: u8,
profile_id: u16,
device_id: u16,
device_version: u8,
input_clusters: Vec<u16>,
output_clusters: Vec<u16>,
},
SetPolicy {
policy_id: u8,
decision: u8,
},
GetValue {
value_id: u8,
},
SetValue {
value_id: u8,
value: Vec<u8>,
},
SetManufacturerCode {
code: u16,
},
NetworkInit {
bitmask: u16,
},
NetworkState,
FormNetwork {
parameters: NetworkParameters,
},
LeaveNetwork {
options: u8,
},
PermitJoining {
duration: u8,
},
GetNetworkParameters,
GetEui64,
GetNodeId,
SetInitialSecurityState {
state: InitialSecurityState,
},
ExportKey {
context: SecManContext,
},
GetNetworkKeyInfo,
ExportLinkKeyByIndex {
index: u8,
},
ImportLinkKey {
index: u8,
ieee: Ieee,
key: Key,
},
EraseKeyTableEntry {
index: u8,
},
ImportTransientKey {
ieee: Ieee,
key: Key,
},
ClearTransientLinkKeys,
ClearKeyTable,
SendUnicast {
kind: u8,
destination: NodeId,
aps: ApsFrame,
tag: u16,
payload: Vec<u8>,
},
SendBroadcast {
alias: NodeId,
destination: NodeId,
nwk_sequence: u8,
aps: ApsFrame,
radius: u8,
tag: u16,
payload: Vec<u8>,
},
SetConcentrator {
on: bool,
kind: u16,
min_time: u16,
max_time: u16,
route_error_threshold: u8,
delivery_failure_threshold: u8,
max_hops: u8,
},
SetSourceRouteDiscoveryMode {
mode: u8,
},
GetMfgToken {
token_id: u8,
},
SetMfgToken {
token_id: u8,
data: Vec<u8>,
},
StartScan {
scan_type: u8,
channel_mask: u32,
duration: u8,
},
LookupEui64ByNodeId {
node_id: NodeId,
},
SetRadioPower {
power: i8,
},
Echo {
data: Vec<u8>,
},
Nop,
}Expand description
A command from the host.
Variants§
Version
Negotiate the protocol version.
GetConfigurationValue
SetConfigurationValue
AddEndpoint
Fields
SetPolicy
GetValue
SetValue
SetManufacturerCode
NetworkInit
NetworkState
FormNetwork
Fields
§
parameters: NetworkParametersLeaveNetwork
PermitJoining
GetNetworkParameters
GetEui64
GetNodeId
SetInitialSecurityState
Fields
§
state: InitialSecurityStateExportKey
Fields
§
context: SecManContextGetNetworkKeyInfo
ExportLinkKeyByIndex
ImportLinkKey
EraseKeyTableEntry
ImportTransientKey
ClearTransientLinkKeys
ClearKeyTable
SendUnicast
SendBroadcast
Fields
SetConcentrator
Fields
SetSourceRouteDiscoveryMode
GetMfgToken
SetMfgToken
StartScan
LookupEui64ByNodeId
SetRadioPower
Echo
Nop
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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