pub enum Response {
Show 18 variants
Version {
protocol_version: u8,
stack_type: u8,
stack_version: u16,
},
GetConfigurationValue {
status: Status,
value: u16,
},
Status {
frame_id: u16,
status: Status,
},
GetValue {
status: Status,
value: Vec<u8>,
},
NetworkState {
state: u8,
},
GetNetworkParameters {
status: Status,
node_type: u8,
parameters: NetworkParameters,
},
GetEui64 {
ieee: Ieee,
},
GetNodeId {
node_id: NodeId,
},
ExportKey {
status: Status,
key: Key,
context: SecManContext,
},
GetNetworkKeyInfo {
status: Status,
info: NetworkKeyInfo,
},
ExportLinkKeyByIndex {
status: Status,
context: SecManContext,
key: Key,
metadata: ApsKeyMetadata,
},
Sent {
frame_id: u16,
status: Status,
aps_sequence: u8,
},
SetSourceRouteDiscoveryMode {
remaining_ms: u32,
},
GetMfgToken {
data: Vec<u8>,
},
LookupEui64ByNodeId {
status: Status,
ieee: Ieee,
},
Echo {
data: Vec<u8>,
},
Empty {
frame_id: u16,
},
InvalidCommand {
reason: u8,
},
}Expand description
A response from the NCP. Each variant is the response to the
Command of the same frame id.
Variants§
Version
GetConfigurationValue
Status
Every command whose only result is a status.
GetValue
NetworkState
GetNetworkParameters
GetEui64
GetNodeId
ExportKey
GetNetworkKeyInfo
ExportLinkKeyByIndex
Sent
sendUnicast and sendBroadcast.
SetSourceRouteDiscoveryMode
GetMfgToken
LookupEui64ByNodeId
Echo
Empty
Commands with no return values.
InvalidCommand
The NCP did not understand the command (invalidCommand).
Implementations§
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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