pub trait UnitLocalizationAttrResponses<'a> {
// Required method
fn unit_localization_read_resp(
&self,
) -> UnitLocalizationAttrResponsesView<'a, '_>;
}Expand description
IM-client extension trait for extracting UnitLocalization-cluster attribute reports out of a generic crate::im::ReportDataResp. use this trait to call .unit_localization_read_resp() on a ReportDataResp; the returned UnitLocalizationAttrResponsesView 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_localization_read_resp( &self, ) -> UnitLocalizationAttrResponsesView<'a, '_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".