Skip to main content

Module defs

Module defs 

Source
Expand description

Cluster definitions and the table-driven codec for cluster commands.

The tables (CLUSTERS) and constant modules (cluster_id, attr, command, response) are generated at build time from data/clusters.toml.

Modules§

attr
Attribute ids, one module per cluster.
cluster_id
Cluster ids.
command
Command ids received by each cluster’s server, one module per cluster.
response
Command ids generated by each cluster’s server, one module per cluster.

Structs§

AttributeDef
An attribute.
ClusterDef
A cluster.
CommandDef
A cluster-specific command.
FieldDef
A command field.
ReportDefault
A default reporting configuration.

Enums§

EncodeError
A command’s fields did not encode.
FieldKind
How a command field is encoded.

Statics§

CLUSTERS
Every cluster this crate knows, sorted by id.

Functions§

cluster
The cluster with this id.
cluster_by_name
The cluster with this name.