pub struct DataReceivedResult {
pub source_node: NodeId,
pub is_emergency: bool,
pub is_ack: bool,
pub counter_changed: bool,
pub emergency_changed: bool,
pub total_count: u64,
pub event_timestamp: u64,
pub relay_data: Option<Vec<u8>>,
pub origin_node: Option<NodeId>,
pub hop_count: u8,
}Expand description
Result from receiving BLE data
Fields§
§source_node: NodeIdNode that sent this data
is_emergency: boolWhether this contained an emergency event
is_ack: boolWhether this contained an ACK event
counter_changed: boolWhether the counter changed (new data)
emergency_changed: boolWhether emergency state changed (new emergency or ACK updates)
total_count: u64Updated total count
event_timestamp: u64Event timestamp (if event present) - use to detect duplicate events
relay_data: Option<Vec<u8>>Data to relay to other peers (if multi-hop relay is enabled)
When present, the platform adapter should send this data to peers
returned by get_relay_targets(Some(source_node)).
origin_node: Option<NodeId>Origin node for relay (may differ from source_node for relayed messages)
hop_count: u8Current hop count (for relayed messages)
Trait Implementations§
Source§impl Clone for DataReceivedResult
impl Clone for DataReceivedResult
Source§fn clone(&self) -> DataReceivedResult
fn clone(&self) -> DataReceivedResult
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 moreAuto Trait Implementations§
impl Freeze for DataReceivedResult
impl RefUnwindSafe for DataReceivedResult
impl Send for DataReceivedResult
impl Sync for DataReceivedResult
impl Unpin for DataReceivedResult
impl UnwindSafe for DataReceivedResult
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