pub trait UnitTestingAttrResponses<'a> {
// Required method
fn unit_testing_read_resp(&self) -> UnitTestingAttrResponsesView<'a, '_>;
}Expand description
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.
Required Methods§
fn unit_testing_read_resp(&self) -> UnitTestingAttrResponsesView<'a, '_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".