pub struct ReportData {
pub subscription_id: Option<u32>,
pub attribute_reports: Vec<AttributeReport>,
pub event_reports: Vec<EventReport>,
pub more_chunks: bool,
pub suppress_response: bool,
}Expand description
Decoded ReportData message (single chunk or merged multi-chunk).
Fields§
§subscription_id: Option<u32>§attribute_reports: Vec<AttributeReport>§event_reports: Vec<EventReport>§more_chunks: bool§suppress_response: boolImplementations§
Source§impl ReportData
impl ReportData
Sourcepub fn parse(tlv: &TlvItem) -> Result<ReportData>
pub fn parse(tlv: &TlvItem) -> Result<ReportData>
Parse the TLV payload of an IM ReportData message. Missing AttributeReports/EventReports lists are not an error (status-only or event-only reports).
Sourcepub fn merge(&mut self, next: ReportData)
pub fn merge(&mut self, next: ReportData)
Append reports from the next chunk; flags are taken from the last chunk.
Trait Implementations§
Source§impl Clone for ReportData
impl Clone for ReportData
Source§fn clone(&self) -> ReportData
fn clone(&self) -> ReportData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReportData
impl Debug for ReportData
Source§impl Default for ReportData
impl Default for ReportData
Source§fn default() -> ReportData
fn default() -> ReportData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReportData
impl RefUnwindSafe for ReportData
impl Send for ReportData
impl Sync for ReportData
impl Unpin for ReportData
impl UnsafeUnpin for ReportData
impl UnwindSafe for ReportData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more