Skip to main content

Module basic_info

Module basic_info 

Source
Expand description

This module contains the implementation of the Basic Information cluster and its handler.

Structs§

BasicInfoConfig
Basic information which is immutable (i.e. valid for the lifetime of the device firmware)
BasicInfoHandler
The system implementation of a handler for the Basic Information Matter cluster.
BasicInfoSettings
Mutable basic information
BasicInformationAttrReadsView
Cluster-scoped view onto an crate::im::AttrPathArrayBuilder for the BasicInformation cluster. Each method pushes one AttrPath (cluster ID baked in) and returns Self for chaining; .end() closes the underlying array. Attribute names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get an attr_ prefix.
BasicInformationAttrResponsesView
Cluster-scoped response view onto a crate::im::ReportDataResp for the BasicInformation cluster. Each method returns an iterator of (EndptId, Result<T, Error>) over the entries in attr_reports whose path matches that attribute. Attribute names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get an attr_ prefix.
BasicInformationAttrWritesView
Cluster-scoped view onto an crate::im::AttrDataArrayBuilder for the BasicInformation cluster. Scalar-valued attrs push and return Self for chaining; struct/list-valued attrs return the codegen-emitted typed value builder (whose parent chain bypasses the view — close back to the array via Data + AttrData .end()?s). .end() closes the wrapped array. Attribute names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get an attr_ prefix.
BasicInformationClientView
Per-exchange view onto the BasicInformation cluster’s client operations. Returned by BasicInformationClient::basic_information. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
BasicInformationCmdRequestsView
Cluster-scoped view onto a crate::im::CmdDataArrayBuilder for the BasicInformation cluster. Empty-request commands push and return Self; parameterized commands return the codegen-emitted typed request builder (whose parent chain bypasses the view — close back to the array via Data + CmdData .end()?s). .end() closes the wrapped array. Command names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen — currently end, which the WebRTC cluster uses) get a cmd_ prefix.
BasicInformationCmdResponsesView
Cluster-scoped response view onto a crate::im::InvokeResp for the BasicInformation cluster. Each method returns an iterator of (EndptId, Result<R, Error>) over the entries in invoke_responses whose path matches that command. Command names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get a cmd_ prefix.
BasicInformationWriteResponsesView
Cluster-scoped write-status view onto a crate::im::WriteResp for the BasicInformation cluster. Each method returns an iterator of (EndptId, Result<(), Error>) over the entries in write_responses whose path matches that attribute. Attribute names that would collide with the view’s own inherent methods (see RESERVED_VIEW_METHOD_NAMES in the codegen) get an attr_ prefix.
CapabilityMinima
Capability Minima as reported in the Basic Information cluster
CapabilityMinimaStruct
CapabilityMinimaStructArrayBuilder
CapabilityMinimaStructBuilder
DeviceLocation
Owned mirror of the LocationDescriptorStruct global type, as stored for the BasicInformation::DeviceLocation attribute.
DeviceLocationConfig
Factory-default value for the BasicInformation::DeviceLocation attribute - the borrowed, const-constructible counterpart of DeviceLocation, suitable for embedding in BasicInfoConfig.
HandlerAdaptor
The handler adaptor for the cluster-specific handler. This adaptor implements the generic rs-matter handler trait.
HandlerAsyncAdaptor
The handler adaptor for the cluster-specific handler. This adaptor implements the generic rs-matter handler trait.
Leave
LeaveArrayBuilder
LeaveBuilder
LocationDescriptorStruct
LocationDescriptorStructBuilder
PairingHintFlags
ProductAppearance
Product Appearance as reported in the Basic Information cluster
ProductAppearanceStruct
ProductAppearanceStructArrayBuilder
ProductAppearanceStructBuilder
ReachableChanged
ReachableChangedArrayBuilder
ReachableChangedBuilder
ShutDown
ShutDownArrayBuilder
ShutDownBuilder
StartUp
StartUpArrayBuilder
StartUpBuilder

Enums§

AreaTypeTag
AttributeId
The attribute IDs for the cluster.
CapabilityMinimaStructTag
ColorEnum
CommandId
The command IDs for the cluster.
CommandResponseId
The command response IDs for the cluster.
EventId
The event IDs for the cluster.
LeaveTag
ProductAppearanceStructTag
ProductFinishEnum
ReachableChangedTag
RegulatoryLocationTypeEnum
ShutDownTag
StartUpTag

Constants§

CLUSTER_DEVICE_LOCATION
BasicInformation cluster metadata that additionally advertises the provisional DeviceLocation attribute (admin-writable, persisted in BasicInfoSettings).
DEFAULT_DATA_MODEL_REVISION
The default Matter Data Model revision
DEFAULT_MATTER_SPEC_VERSION
The default Matter App Clusters specification version
DEFAULT_MAX_PATHS_PER_INVOKE
The default maximum number of paths that can be included in an Invoke request
FULL_CLUSTER
The cluster metadata. By default, all cluster attributes, commands and events are allowed, and the revision is the latest one. Use Cluster::with_* to reconfigure.

Traits§

BasicInformationAttrReads
IM-client extension trait for the BasicInformation cluster’s attribute reads. use this trait to call .basic_information_read() on an crate::im::AttrPathArrayBuilder; the returned BasicInformationAttrReadsView exposes one method per attribute (cluster-prefix-free). .end() on the view closes the wrapped array.
BasicInformationAttrResponses
IM-client extension trait for extracting BasicInformation-cluster attribute reports out of a generic crate::im::ReportDataResp. use this trait to call .basic_information_read_resp() on a ReportDataResp; the returned BasicInformationAttrResponsesView exposes one iterator method per attribute (scalar, string, struct and list alike), each yielding (EndptId, Result<T, Error>). The item type borrows the response, so string/struct/list attributes come back as Utf8Str<'a>/OctetStr<'a>, the codegen struct wrapper Foo<'a>, or TLVArray<'a, _> respectively.
BasicInformationAttrWrites
IM-client extension trait for the BasicInformation cluster’s attribute writes. use this trait to call .basic_information_write() on an crate::im::AttrDataArrayBuilder; the returned BasicInformationAttrWritesView exposes one method per writable attribute (cluster-prefix-free). .end() on the view closes the wrapped array.
BasicInformationClient
Single-shot IM-client convenience trait for the BasicInformation cluster. use this trait to call .basic_information() on an crate::transport::exchange::Exchange; the returned BasicInformationClientView exposes one method per command and per attribute. Scalar attributes get a by-value <attr>_read(endpoint); non-scalar ones (string/octet/struct/list, whose value borrows the response) get <attr>_read_with(endpoint, |v| …), which hands the borrowed value to the closure and returns its owned result. The cluster ID, command/attribute ID, request opcode, retransmit loop, response-chunk iteration, and status-only handling are all baked in. DefaultSuccess commands return Result<(), Error> and drain the response internally; response-bearing commands return Result<<RespStruct>Handle<'a>, Error> — the handle keeps the RX buffer alive so the caller can read the borrowed response via .response()? before .complete().await?ing the exchange.
BasicInformationCmdRequests
IM-client extension trait for the BasicInformation cluster’s commands. use this trait to call .basic_information_inv() on a crate::im::CmdDataArrayBuilder; the returned BasicInformationCmdRequestsView exposes one method per command (cluster-prefix-free). .end() on the view closes the wrapped array.
BasicInformationCmdResponses
IM-client extension trait for extracting BasicInformation-cluster command responses out of a generic crate::im::InvokeResp. use this trait to call .basic_information_inv_resp() on an InvokeResp; the returned BasicInformationCmdResponsesView exposes one iterator method per command, each yielding (EndptId, Result<<Output>, Error>) — see crate::im::InvokeResp::responses / crate::im::InvokeResp::statuses for the per-entry semantics.
BasicInformationWriteResponses
IM-client extension trait for extracting BasicInformation-cluster per-attribute write statuses out of a generic crate::im::WriteResp. use this trait to call .basic_information_write_resp() on a WriteResp; the returned BasicInformationWriteResponsesView exposes one iterator method per writable attribute, each yielding (EndptId, Result<(), Error>).
ClusterAsyncHandler
The handler trait for the cluster.
ClusterHandler
The handler trait for the cluster.