#[non_exhaustive]pub enum Expectation {
Show 14 variants
CommissioningInfo,
ArmFailsafeResponse,
SetRegulatoryConfigResponse,
PaiCertChainResponse,
DacCertChainResponse,
AttestationResponse,
CsrResponse,
AddTrustedRootResponse,
NocResponse,
CommissioningCompleteResponse,
NetworkCommissioningInfo,
NetworkConfigResponse,
ConnectNetworkResponse,
CaseFailed,
}Expand description
The response type the state machine expects after an
Action::Invoke or Action::ReadAttribute.
Passed back into super::Commissioner::on_response alongside the
raw TLV payload so the state machine can validate that the response
matches the request without parsing the entire TLV first.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CommissioningInfo
Response to Action::ReadAttribute for BasicCommissioningInfo +
RegulatoryConfig + CapabilityMinima.
ArmFailsafeResponse
GeneralCommissioning::ArmFailSafeResponse (cluster 0x0030,
response 0x01).
SetRegulatoryConfigResponse
GeneralCommissioning::SetRegulatoryConfigResponse (response 0x03).
PaiCertChainResponse
OperationalCredentials::CertificateChainResponse for the PAI.
DacCertChainResponse
OperationalCredentials::CertificateChainResponse for the DAC.
AttestationResponse
OperationalCredentials::AttestationResponse (response 0x01).
CsrResponse
OperationalCredentials::CSRResponse (response 0x05).
AddTrustedRootResponse
Status-only ack for OperationalCredentials::AddTrustedRootCertificate.
NocResponse
OperationalCredentials::NOCResponse (response 0x08).
CommissioningCompleteResponse
GeneralCommissioning::CommissioningCompleteResponse (response 0x05).
NetworkCommissioningInfo
Response to Action::ReadAttribute for
NetworkCommissioning::FeatureMap (attribute 0xFFFC). Caller
delivers the bare u32 attribute value’s TLV bytes, not the
Interaction Model AttributeReportIB envelope.
NetworkConfigResponse
NetworkCommissioning::NetworkConfigResponse (cluster 0x0031
response 0x05) — emitted by AddOrUpdateWiFiNetwork.
ConnectNetworkResponse
NetworkCommissioning::ConnectNetworkResponse (response 0x07).
CaseFailed
Caller-side signal that CASE establishment failed. Fed into
on_response(Expectation::CaseFailed, &[]) after
Action::EstablishCase.
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
Source§fn clone(&self) -> Expectation
fn clone(&self) -> Expectation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more