Skip to main content

Module unit_testing

Module unit_testing 

Source
Expand description

Generated cluster module

Structs§

Bitmap8MaskMap
Bitmap16MaskMap
Bitmap32MaskMap
Bitmap64MaskMap
BooleanResponse
BooleanResponseArrayBuilder
BooleanResponseBuilder
BooleanResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a BooleanResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed BooleanResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
DoubleNestedStructList
DoubleNestedStructListArrayBuilder
DoubleNestedStructListBuilder
GlobalEchoRequestRequest
GlobalEchoRequestRequestArrayBuilder
GlobalEchoRequestRequestBuilder
GlobalEchoResponse
GlobalEchoResponseArrayBuilder
GlobalEchoResponseBuilder
GlobalEchoResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a GlobalEchoResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed GlobalEchoResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
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.
NestedStruct
NestedStructArrayBuilder
NestedStructBuilder
NestedStructList
NestedStructListArrayBuilder
NestedStructListBuilder
NullablesAndOptionalsStruct
NullablesAndOptionalsStructArrayBuilder
NullablesAndOptionalsStructBuilder
SimpleBitmap
SimpleStruct
SimpleStructArrayBuilder
SimpleStructBuilder
SimpleStructEchoRequestRequest
SimpleStructEchoRequestRequestArrayBuilder
SimpleStructEchoRequestRequestBuilder
SimpleStructResponse
SimpleStructResponseArrayBuilder
SimpleStructResponseBuilder
SimpleStructResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a SimpleStructResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed SimpleStructResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
StringEchoRequestRequest
StringEchoRequestRequestArrayBuilder
StringEchoRequestRequestBuilder
StringEchoResponse
StringEchoResponseArrayBuilder
StringEchoResponseBuilder
StringEchoResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a StringEchoResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed StringEchoResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestAddArgumentsRequest
TestAddArgumentsRequestArrayBuilder
TestAddArgumentsRequestBuilder
TestAddArgumentsResponse
TestAddArgumentsResponseArrayBuilder
TestAddArgumentsResponseBuilder
TestAddArgumentsResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestAddArgumentsResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestAddArgumentsResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestBatchHelperRequestRequest
TestBatchHelperRequestRequestArrayBuilder
TestBatchHelperRequestRequestBuilder
TestBatchHelperResponse
TestBatchHelperResponseArrayBuilder
TestBatchHelperResponseBuilder
TestBatchHelperResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestBatchHelperResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestBatchHelperResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestComplexNullableOptionalRequestRequest
TestComplexNullableOptionalRequestRequestArrayBuilder
TestComplexNullableOptionalRequestRequestBuilder
TestComplexNullableOptionalResponse
TestComplexNullableOptionalResponseArrayBuilder
TestComplexNullableOptionalResponseBuilder
TestComplexNullableOptionalResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestComplexNullableOptionalResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestComplexNullableOptionalResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestDifferentVendorMeiEvent
TestDifferentVendorMeiEventArrayBuilder
TestDifferentVendorMeiEventBuilder
TestDifferentVendorMeiRequestRequest
TestDifferentVendorMeiRequestRequestArrayBuilder
TestDifferentVendorMeiRequestRequestBuilder
TestDifferentVendorMeiResponse
TestDifferentVendorMeiResponseArrayBuilder
TestDifferentVendorMeiResponseBuilder
TestDifferentVendorMeiResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestDifferentVendorMeiResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestDifferentVendorMeiResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestEmitTestEventRequestRequest
TestEmitTestEventRequestRequestArrayBuilder
TestEmitTestEventRequestRequestBuilder
TestEmitTestEventResponse
TestEmitTestEventResponseArrayBuilder
TestEmitTestEventResponseBuilder
TestEmitTestEventResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestEmitTestEventResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestEmitTestEventResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestEmitTestFabricScopedEventRequestRequest
TestEmitTestFabricScopedEventRequestRequestArrayBuilder
TestEmitTestFabricScopedEventRequestRequestBuilder
TestEmitTestFabricScopedEventResponse
TestEmitTestFabricScopedEventResponseArrayBuilder
TestEmitTestFabricScopedEventResponseBuilder
TestEmitTestFabricScopedEventResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestEmitTestFabricScopedEventResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestEmitTestFabricScopedEventResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestEnumsRequestRequest
TestEnumsRequestRequestArrayBuilder
TestEnumsRequestRequestBuilder
TestEnumsResponse
TestEnumsResponseArrayBuilder
TestEnumsResponseBuilder
TestEnumsResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestEnumsResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestEnumsResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestEvent
TestEventArrayBuilder
TestEventBuilder
TestFabricScoped
TestFabricScopedArrayBuilder
TestFabricScopedBuilder
TestFabricScopedEvent
TestFabricScopedEventArrayBuilder
TestFabricScopedEventBuilder
TestListInt8UArgumentRequestRequest
TestListInt8UArgumentRequestRequestArrayBuilder
TestListInt8UArgumentRequestRequestBuilder
TestListInt8UReverseRequestRequest
TestListInt8UReverseRequestRequestArrayBuilder
TestListInt8UReverseRequestRequestBuilder
TestListInt8UReverseResponse
TestListInt8UReverseResponseArrayBuilder
TestListInt8UReverseResponseBuilder
TestListInt8UReverseResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestListInt8UReverseResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestListInt8UReverseResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestListNestedStructListArgumentRequestRequest
TestListNestedStructListArgumentRequestRequestArrayBuilder
TestListNestedStructListArgumentRequestRequestBuilder
TestListStructArgumentRequestRequest
TestListStructArgumentRequestRequestArrayBuilder
TestListStructArgumentRequestRequestBuilder
TestListStructOctet
TestListStructOctetArrayBuilder
TestListStructOctetBuilder
TestNestedStructArgumentRequestRequest
TestNestedStructArgumentRequestRequestArrayBuilder
TestNestedStructArgumentRequestRequestBuilder
TestNestedStructListArgumentRequestRequest
TestNestedStructListArgumentRequestRequestArrayBuilder
TestNestedStructListArgumentRequestRequestBuilder
TestNullableOptionalRequestRequest
TestNullableOptionalRequestRequestArrayBuilder
TestNullableOptionalRequestRequestBuilder
TestNullableOptionalResponse
TestNullableOptionalResponseArrayBuilder
TestNullableOptionalResponseBuilder
TestNullableOptionalResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestNullableOptionalResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestNullableOptionalResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestSecondBatchHelperRequestRequest
TestSecondBatchHelperRequestRequestArrayBuilder
TestSecondBatchHelperRequestRequestBuilder
TestSimpleArgumentRequestRequest
TestSimpleArgumentRequestRequestArrayBuilder
TestSimpleArgumentRequestRequestBuilder
TestSimpleArgumentResponse
TestSimpleArgumentResponseArrayBuilder
TestSimpleArgumentResponseBuilder
TestSimpleArgumentResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestSimpleArgumentResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestSimpleArgumentResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestSimpleOptionalArgumentRequestRequest
TestSimpleOptionalArgumentRequestRequestArrayBuilder
TestSimpleOptionalArgumentRequestRequestBuilder
TestSpecificResponse
TestSpecificResponseArrayBuilder
TestSpecificResponseBuilder
TestSpecificResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestSpecificResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestSpecificResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
TestStructArgumentRequestRequest
TestStructArgumentRequestRequestArrayBuilder
TestStructArgumentRequestRequestBuilder
TestStructArrayArgumentRequestRequest
TestStructArrayArgumentRequestRequestArrayBuilder
TestStructArrayArgumentRequestRequestBuilder
TestStructArrayArgumentResponse
TestStructArrayArgumentResponseArrayBuilder
TestStructArrayArgumentResponseBuilder
TestStructArrayArgumentResponseHandle
Single-shot handle wrapping the [InvokeRespChunk] of a TestStructArrayArgumentResponse response. Holds the exchange’s RX buffer alive; response() parses the embedded CommandDataIB into a borrowed TestStructArrayArgumentResponse. The trailing StatusResponse(Success) is sent when the caller .complete().await?s the handle.
UnitTestingAttrReadsView
Cluster-scoped view onto an crate::im::AttrPathArrayBuilder for the UnitTesting 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.
UnitTestingAttrResponsesView
Cluster-scoped response view onto a crate::im::ReportDataResp for the UnitTesting 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.
UnitTestingAttrWritesView
Cluster-scoped view onto an crate::im::AttrDataArrayBuilder for the UnitTesting 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.
UnitTestingClientView
Per-exchange view onto the UnitTesting cluster’s client operations. Returned by UnitTestingClient::unit_testing. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
UnitTestingCmdRequestsView
Cluster-scoped view onto a crate::im::CmdDataArrayBuilder for the UnitTesting 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.
UnitTestingCmdResponsesView
Cluster-scoped response view onto a crate::im::InvokeResp for the UnitTesting 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.
UnitTestingWriteResponsesView
Cluster-scoped write-status view onto a crate::im::WriteResp for the UnitTesting 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.

Enums§

AttributeId
The attribute IDs for the cluster.
BooleanResponseTag
CommandId
The command IDs for the cluster.
CommandResponseId
The command response IDs for the cluster.
DoubleNestedStructListTag
EventId
The event IDs for the cluster.
GlobalEchoRequestRequestTag
GlobalEchoResponseTag
NestedStructListTag
NestedStructTag
NullablesAndOptionalsStructTag
SimpleEnum
SimpleStructEchoRequestRequestTag
SimpleStructResponseTag
SimpleStructTag
StringEchoRequestRequestTag
StringEchoResponseTag
TestAddArgumentsRequestTag
TestAddArgumentsResponseTag
TestBatchHelperRequestRequestTag
TestBatchHelperResponseTag
TestComplexNullableOptionalRequestRequestTag
TestComplexNullableOptionalResponseTag
TestDifferentVendorMeiEventTag
TestDifferentVendorMeiRequestRequestTag
TestDifferentVendorMeiResponseTag
TestEmitTestEventRequestRequestTag
TestEmitTestEventResponseTag
TestEmitTestFabricScopedEventRequestRequestTag
TestEmitTestFabricScopedEventResponseTag
TestEnumsRequestRequestTag
TestEnumsResponseTag
TestEventTag
TestFabricScopedEventTag
TestFabricScopedTag
TestListInt8UArgumentRequestRequestTag
TestListInt8UReverseRequestRequestTag
TestListInt8UReverseResponseTag
TestListNestedStructListArgumentRequestRequestTag
TestListStructArgumentRequestRequestTag
TestListStructOctetTag
TestNestedStructArgumentRequestRequestTag
TestNestedStructListArgumentRequestRequestTag
TestNullableOptionalRequestRequestTag
TestNullableOptionalResponseTag
TestSecondBatchHelperRequestRequestTag
TestSimpleArgumentRequestRequestTag
TestSimpleArgumentResponseTag
TestSimpleOptionalArgumentRequestRequestTag
TestSpecificResponseTag
TestStructArgumentRequestRequestTag
TestStructArrayArgumentRequestRequestTag
TestStructArrayArgumentResponseTag

Constants§

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§

ClusterAsyncHandler
The handler trait for the cluster.
ClusterHandler
The handler trait for the cluster.
UnitTestingAttrReads
IM-client extension trait for the UnitTesting cluster’s attribute reads. use this trait to call .unit_testing_read() on an crate::im::AttrPathArrayBuilder; the returned UnitTestingAttrReadsView exposes one method per attribute (cluster-prefix-free). .end() on the view closes the wrapped array.
UnitTestingAttrResponses
IM-client extension trait for extracting UnitTesting-cluster attribute reports out of a generic crate::im::ReportDataResp. use this trait to call .unit_testing_read_resp() on a ReportDataResp; the returned UnitTestingAttrResponsesView 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.
UnitTestingAttrWrites
IM-client extension trait for the UnitTesting cluster’s attribute writes. use this trait to call .unit_testing_write() on an crate::im::AttrDataArrayBuilder; the returned UnitTestingAttrWritesView exposes one method per writable attribute (cluster-prefix-free). .end() on the view closes the wrapped array.
UnitTestingClient
Single-shot IM-client convenience trait for the UnitTesting cluster. use this trait to call .unit_testing() on an crate::transport::exchange::Exchange; the returned UnitTestingClientView 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.
UnitTestingCmdRequests
IM-client extension trait for the UnitTesting cluster’s commands. use this trait to call .unit_testing_inv() on a crate::im::CmdDataArrayBuilder; the returned UnitTestingCmdRequestsView exposes one method per command (cluster-prefix-free). .end() on the view closes the wrapped array.
UnitTestingCmdResponses
IM-client extension trait for extracting UnitTesting-cluster command responses out of a generic crate::im::InvokeResp. use this trait to call .unit_testing_inv_resp() on an InvokeResp; the returned UnitTestingCmdResponsesView 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.
UnitTestingWriteResponses
IM-client extension trait for extracting UnitTesting-cluster per-attribute write statuses out of a generic crate::im::WriteResp. use this trait to call .unit_testing_write_resp() on a WriteResp; the returned UnitTestingWriteResponsesView exposes one iterator method per writable attribute, each yielding (EndptId, Result<(), Error>).