Skip to main content

BasicInformationAttrResponses

Trait BasicInformationAttrResponses 

Source
pub trait BasicInformationAttrResponses<'a> {
    // Required method
    fn basic_information_read_resp(
        &self,
    ) -> BasicInformationAttrResponsesView<'a, '_>;
}
Expand description

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.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§