pub struct Device<'a, C, K, G, H, Ac, Gk, Ev, V, const F: usize>where
C: Config,
K: KeyStore,
G: Rng,
H: ClusterHandler,
Ac: AccessList,
Gk: GroupKeyStore,
Ev: EventLog,
V: ChangeLog,{
pub node: Node<'a>,
pub handler: &'a H,
pub credentials: &'a OperationalCredentials<'a, C, K, G, F>,
pub commissioning: &'a GeneralCommissioning<'a>,
pub access_control: &'a Ac,
pub group_keys: &'a Gk,
pub events: &'a Ev,
pub versions: &'a V,
pub verifier: &'a Spake2pVerifierData,
pub parameters: &'a PbkdfParameters,
pub memberships: Option<&'a dyn GroupTable>,
}rustcrypto only.Expand description
What the application hands the runtime: its node and the parts the specification makes the node’s to drive.
Built once with a struct literal; every type parameter is inferred, so an application never
spells one. The clusters named here must also be in handler — the runtime reaches them
directly only for the follow-ups a cluster cannot perform itself: a cluster reports, the
node acts.
Fields§
§node: Node<'a>The node’s endpoints and clusters.
handler: &'a HEvery cluster instance, routed by endpoint and cluster id.
credentials: &'a OperationalCredentials<'a, C, K, G, F>Operational Credentials — and through it the fabric table, the key store, the rng and the fail-safe.
commissioning: &'a GeneralCommissioning<'a>General Commissioning — and through it the fail-safe and the commissioning window.
access_control: &'a AcAccess Control.
group_keys: &'a GkThe group key store Group Key Management serves.
events: &'a EvThe event log.
versions: &'a VThe data versions.
verifier: &'a Spake2pVerifierDataThe SPAKE2+ verifier the passcode was turned into at manufacture.
parameters: &'a PbkdfParametersThe PBKDF parameters that go with it.
memberships: Option<&'a dyn GroupTable>Which groups the node’s endpoints are in, so the driver can join their multicast
addresses (§2.5.6.2). None for a node with no Groups cluster.