Skip to main content

Cluster

Trait Cluster 

Source
pub trait Cluster: ClusterHandler {
    const ID: ClusterId;
}
Expand description

One cluster implementation, tagged with the id it answers for.

The supertrait is what makes a Cluster usable on its own — a device with exactly one cluster needs no dispatch — and the associated ID is what makes a tuple of them dispatchable.

Required Associated Constants§

Source

const ID: ClusterId

The cluster id this implementation serves.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Cluster + ?Sized> Cluster for &T

A shared reference to a cluster is a cluster, so a tuple of borrowed clusters dispatches like a tuple of owned ones.

Source§

const ID: ClusterId = T::ID

Implementors§

Source§

impl Cluster for AdministratorCommissioning<'_>

Available on crate feature rustcrypto only.
Source§

const ID: ClusterId = ID

Source§

impl Cluster for BasicInformation<'_>

Source§

const ID: ClusterId = ID

Source§

impl Cluster for BridgedDeviceBasicInformation<'_>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl Cluster for Descriptor<'_>

Source§

const ID: ClusterId = ID

Source§

impl Cluster for FixedLabel<'_>

Source§

const ID: ClusterId = FIXED_LABEL_ID

Source§

impl Cluster for GeneralCommissioning<'_>

Source§

const ID: ClusterId = ID

Source§

impl Cluster for PowerTopology<'_>

Source§

const ID: ClusterId = topology::ID

Source§

impl<C: Config, K: KeyStore, R: Rng, const N: usize> Cluster for OperationalCredentials<'_, C, K, R, N>

Available on crate feature rustcrypto only.
Source§

const ID: ClusterId = ID

Source§

impl<C: Config, T: GroupTable, const K: usize, const M: usize> Cluster for GroupKeyManagement<'_, C, T, K, M>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<C: Config, const M: usize, const E: usize, const K: usize, const G: usize> Cluster for Groupcast<'_, C, M, E, K, G>

Available on crate features provisional and rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<C: Config, const N: usize, A: StayActive> Cluster for IcdManagement<'_, C, N, A>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<C: Config, const N: usize, const S: usize, const T: usize> Cluster for AccessControl<'_, C, N, S, T>

Source§

const ID: ClusterId = ID

Source§

impl<C: Config, const N: usize> Cluster for Binding<C, N>

Source§

const ID: ClusterId = ID

Source§

impl<D: Diagnostics> Cluster for GeneralDiagnostics<'_, D>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<D: EthernetDriver> Cluster for EthernetNetworkDiagnostics<'_, D>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<D: NetworkDriver, const N: usize> Cluster for NetworkCommissioning<'_, D, N>

Source§

const ID: ClusterId = ID

Source§

impl<D: ThreadDriver, const E: usize> Cluster for ThreadNetworkDiagnostics<'_, D, E>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<D: WiFiDriver, const E: usize> Cluster for WiFiNetworkDiagnostics<'_, D, E>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: CommissionerControlHooks, const N: usize> Cluster for CommissionerControl<'_, H, N>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: DemHooks> Cluster for DeviceEnergyManagement<'_, H>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: EnergyMeterHooks> Cluster for ElectricalEnergyMeasurement<'_, H>

Source§

const ID: ClusterId = energy::ID

Source§

impl<H: EvseHooks, const T: usize> Cluster for EnergyEvse<'_, H, T>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: IdentifyHooks> Cluster for Identify<'_, H>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: JointFabricHooks> Cluster for JointFabricAdministrator<'_, H>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: LevelControlHooks, O: OnOffState> Cluster for LevelControl<'_, H, O>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: ModeHooks, const CLUSTER: ClusterId> Cluster for Mode<'_, H, CLUSTER>

So a tuple of clusters can dispatch to it by id — a different type per derived cluster.

Source§

const ID: ClusterId = CLUSTER

Source§

impl<H: OnOffHooks> Cluster for OnOff<'_, H>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: OtaProviderHooks> Cluster for OtaProvider<'_, H>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: OtaRequestorHooks, const N: usize> Cluster for OtaRequestor<'_, H, N>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: PowerMeterHooks> Cluster for ElectricalPowerMeasurement<'_, H>

Source§

const ID: ClusterId = power::ID

Source§

impl<H: SceneHooks, G: GroupMembership, const N: usize, const EFS: usize, const F: usize> Cluster for Scenes<'_, H, G, N, EFS, F>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: TlsCertificateHooks, const R: usize, const C: usize, const E: usize> Cluster for CertificateManagement<'_, H, R, C, E>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<H: WaterHeaterHooks> Cluster for WaterHeaterManagement<'_, H>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<M: SoftwareMetrics> Cluster for SoftwareDiagnostics<'_, M>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<const N: usize, I: Identifying, S: ScenePurge> Cluster for Groups<'_, N, I, S>

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<const N: usize, const G: usize, const K: usize, const A: usize, const M: usize> Cluster for JointFabricDatastore<'_, N, G, K, A, M>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID

Source§

impl<const N: usize> Cluster for UserLabel<N>

Source§

const ID: ClusterId = USER_LABEL_ID

Source§

impl<const R: usize, const C: usize, const E: usize> Cluster for ClientManagement<'_, R, C, E>

Available on crate feature rustcrypto only.

So a tuple of clusters can dispatch to it by id.

Source§

const ID: ClusterId = ID