Skip to main content

ALL

Constant ALL 

Source
pub const ALL: &[&Cluster];
Expand description

Every cluster in the library, sorted by id.

Referencing this links all of them. Each table on its own is const data the linker drops when nothing names it — one cluster costs about 8 KB of read-only data, the whole library about 131 KB, measured on a release build. So a controller or a conformance tool uses ALL and pays for it happily, and a device names the handful of clusters it serves and pays for those.

crate::clusters::validate_endpoint reaches ALL through find, which is why it belongs in a device’s tests rather than its start-up path.