pub struct ReportData<'a> {
pub subscription_id: Option<u32>,
pub more_chunked_messages: bool,
pub suppress_response: bool,
pub revision: Option<u16>,
/* private fields */
}Expand description
ReportDataMessage.
Fields§
§subscription_id: Option<u32>SubscriptionID [0], present when this report belongs to a subscription.
more_chunked_messages: boolMoreChunkedMessages [3] — another message of this same action follows (§10.2.3).
suppress_response: boolSuppressResponse [4] — the receiver need not send a StatusResponse.
revision: Option<u16>InteractionModelRevision [0xFF].
Implementations§
Source§impl<'a> ReportData<'a>
impl<'a> ReportData<'a>
Sourcepub fn attribute_reports(
&self,
) -> Result<Option<ArrayIter<'a, AttributeReport<'a>>>>
pub fn attribute_reports( &self, ) -> Result<Option<ArrayIter<'a, AttributeReport<'a>>>>
The attribute reports, decoded one at a time.
Sourcepub fn event_reports(&self) -> Result<Option<ArrayIter<'a, EventReport<'a>>>>
pub fn event_reports(&self) -> Result<Option<ArrayIter<'a, EventReport<'a>>>>
The event reports, decoded one at a time.
Sourcepub const fn attribute_reports_bytes(&self) -> Option<&'a [u8]>
pub const fn attribute_reports_bytes(&self) -> Option<&'a [u8]>
The raw bytes of the attribute reports array, for a caller that forwards or
accumulates them without looking — a bridge relaying a report, or
ReportAssembler putting a chunked one back together.
The slice is the whole array element, tag and end-of-container included, which is why two chunks cannot simply be concatenated: that would make two arrays, not one.
Sourcepub const fn event_reports_bytes(&self) -> Option<&'a [u8]>
pub const fn event_reports_bytes(&self) -> Option<&'a [u8]>
The raw bytes of the event reports array, for a caller that forwards them without looking — a bridge relaying a report for a cluster it has never heard of.