Expand description
This module contains the implementation of the Basic Information cluster and its handler.
Structs§
- Basic
Info Config - Basic information which is immutable (i.e. valid for the lifetime of the device firmware)
- Basic
Info Handler - The system implementation of a handler for the Basic Information Matter cluster.
- Basic
Info Settings - Mutable basic information
- Basic
Information Attr Reads View - Cluster-scoped view onto an
crate::im::AttrPathArrayBuilderfor theBasicInformationcluster. Each method pushes oneAttrPath(cluster ID baked in) and returnsSelffor chaining;.end()closes the underlying array. Attribute names that would collide with the view’s own inherent methods (seeRESERVED_VIEW_METHOD_NAMESin the codegen) get anattr_prefix. - Basic
Information Attr Responses View - Cluster-scoped response view onto a
crate::im::ReportDataRespfor theBasicInformationcluster. Each method returns an iterator of(EndptId, Result<T, Error>)over the entries inattr_reportswhose path matches that attribute. Attribute names that would collide with the view’s own inherent methods (seeRESERVED_VIEW_METHOD_NAMESin the codegen) get anattr_prefix. - Basic
Information Attr Writes View - Cluster-scoped view onto an
crate::im::AttrDataArrayBuilderfor theBasicInformationcluster. Scalar-valued attrs push and returnSelffor 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 (seeRESERVED_VIEW_METHOD_NAMESin the codegen) get anattr_prefix. - Basic
Information Client View - Per-exchange view onto the
BasicInformationcluster’s client operations. Returned byBasicInformationClient::basic_information. Each method consumes the view (and therefore the underlyingcrate::transport::exchange::Exchange) — one exchange is one IM transaction. - Basic
Information CmdRequests View - Cluster-scoped view onto a
crate::im::CmdDataArrayBuilderfor theBasicInformationcluster. Empty-request commands push and returnSelf; 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 (seeRESERVED_VIEW_METHOD_NAMESin the codegen — currentlyend, which the WebRTC cluster uses) get acmd_prefix. - Basic
Information CmdResponses View - Cluster-scoped response view onto a
crate::im::InvokeRespfor theBasicInformationcluster. Each method returns an iterator of(EndptId, Result<R, Error>)over the entries ininvoke_responseswhose path matches that command. Command names that would collide with the view’s own inherent methods (seeRESERVED_VIEW_METHOD_NAMESin the codegen) get acmd_prefix. - Basic
Information Write Responses View - Cluster-scoped write-status view onto a
crate::im::WriteRespfor theBasicInformationcluster. Each method returns an iterator of(EndptId, Result<(), Error>)over the entries inwrite_responseswhose path matches that attribute. Attribute names that would collide with the view’s own inherent methods (seeRESERVED_VIEW_METHOD_NAMESin the codegen) get anattr_prefix. - Capability
Minima - Capability Minima as reported in the Basic Information cluster
- Capability
Minima Struct - Capability
Minima Struct Array Builder - Capability
Minima Struct Builder - Device
Location - Owned mirror of the
LocationDescriptorStructglobal type, as stored for theBasicInformation::DeviceLocationattribute. - Device
Location Config - Factory-default value for the
BasicInformation::DeviceLocationattribute - the borrowed, const-constructible counterpart ofDeviceLocation, suitable for embedding inBasicInfoConfig. - Handler
Adaptor - The handler adaptor for the cluster-specific handler. This adaptor implements the generic
rs-matterhandler trait. - Handler
Async Adaptor - The handler adaptor for the cluster-specific handler. This adaptor implements the generic
rs-matterhandler trait. - Leave
- Leave
Array Builder - Leave
Builder - Location
Descriptor Struct - Location
Descriptor Struct Builder - Pairing
Hint Flags - Product
Appearance - Product Appearance as reported in the Basic Information cluster
- Product
Appearance Struct - Product
Appearance Struct Array Builder - Product
Appearance Struct Builder - Reachable
Changed - Reachable
Changed Array Builder - Reachable
Changed Builder - Shut
Down - Shut
Down Array Builder - Shut
Down Builder - StartUp
- Start
UpArray Builder - Start
UpBuilder
Enums§
- Area
Type Tag - Attribute
Id - The attribute IDs for the cluster.
- Capability
Minima Struct Tag - Color
Enum - Command
Id - The command IDs for the cluster.
- Command
Response Id - The command response IDs for the cluster.
- EventId
- The event IDs for the cluster.
- Leave
Tag - Product
Appearance Struct Tag - Product
Finish Enum - Reachable
Changed Tag - Regulatory
Location Type Enum - Shut
Down Tag - Start
UpTag
Constants§
- CLUSTER_
DEVICE_ LOCATION BasicInformationcluster metadata that additionally advertises the provisionalDeviceLocationattribute (admin-writable, persisted inBasicInfoSettings).- 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§
- Basic
Information Attr Reads - IM-client extension trait for the
BasicInformationcluster’s attribute reads.usethis trait to call.basic_information_read()on ancrate::im::AttrPathArrayBuilder; the returnedBasicInformationAttrReadsViewexposes one method per attribute (cluster-prefix-free)..end()on the view closes the wrapped array. - Basic
Information Attr Responses - IM-client extension trait for extracting
BasicInformation-cluster attribute reports out of a genericcrate::im::ReportDataResp.usethis trait to call.basic_information_read_resp()on aReportDataResp; the returnedBasicInformationAttrResponsesViewexposes 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 asUtf8Str<'a>/OctetStr<'a>, the codegen struct wrapperFoo<'a>, orTLVArray<'a, _>respectively. - Basic
Information Attr Writes - IM-client extension trait for the
BasicInformationcluster’s attribute writes.usethis trait to call.basic_information_write()on ancrate::im::AttrDataArrayBuilder; the returnedBasicInformationAttrWritesViewexposes one method per writable attribute (cluster-prefix-free)..end()on the view closes the wrapped array. - Basic
Information Client - Single-shot IM-client convenience trait for the
BasicInformationcluster.usethis trait to call.basic_information()on ancrate::transport::exchange::Exchange; the returnedBasicInformationClientViewexposes 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 returnResult<(), Error>and drain the response internally; response-bearing commands returnResult<<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. - Basic
Information CmdRequests - IM-client extension trait for the
BasicInformationcluster’s commands.usethis trait to call.basic_information_inv()on acrate::im::CmdDataArrayBuilder; the returnedBasicInformationCmdRequestsViewexposes one method per command (cluster-prefix-free)..end()on the view closes the wrapped array. - Basic
Information CmdResponses - IM-client extension trait for extracting
BasicInformation-cluster command responses out of a genericcrate::im::InvokeResp.usethis trait to call.basic_information_inv_resp()on anInvokeResp; the returnedBasicInformationCmdResponsesViewexposes one iterator method per command, each yielding(EndptId, Result<<Output>, Error>)— seecrate::im::InvokeResp::responses/crate::im::InvokeResp::statusesfor the per-entry semantics. - Basic
Information Write Responses - IM-client extension trait for extracting
BasicInformation-cluster per-attribute write statuses out of a genericcrate::im::WriteResp.usethis trait to call.basic_information_write_resp()on aWriteResp; the returnedBasicInformationWriteResponsesViewexposes one iterator method per writable attribute, each yielding(EndptId, Result<(), Error>). - Cluster
Async Handler - The handler trait for the cluster.
- Cluster
Handler - The handler trait for the cluster.