pub struct MergeResult {
pub source_node: NodeId,
pub event: Option<PeripheralEvent>,
pub counter_changed: bool,
pub emergency_changed: bool,
pub total_count: u64,
}Expand description
Result from merging a received document
Fields§
§source_node: NodeIdNode ID that sent this document
event: Option<PeripheralEvent>Event contained in the document (if any)
counter_changed: boolWhether the counter changed (indicates new data)
emergency_changed: boolWhether the emergency state changed (new emergency or ACK updates)
total_count: u64Updated total count after merge
Implementations§
Source§impl MergeResult
impl MergeResult
Trait Implementations§
Source§impl Clone for MergeResult
impl Clone for MergeResult
Source§fn clone(&self) -> MergeResult
fn clone(&self) -> MergeResult
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 MergeResult
impl RefUnwindSafe for MergeResult
impl Send for MergeResult
impl Sync for MergeResult
impl Unpin for MergeResult
impl UnwindSafe for MergeResult
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