pub struct ControlPacket {
pub is_collector: bool,
pub central_send_uptime: u64,
pub latency_offset: i64,
pub sequence_number: u32,
/* private fields */
}Expand description
Control packet sent from Central to Peripheral.
Fields§
§is_collector: boolWhether the central is currently in collector mode; the peripheral mirrors this flag to keep the pair in sync.
central_send_uptime: u64Microseconds-since-boot timestamp captured when the central queued this packet for transmit.
latency_offset: i64Latency offset (μs) the central has observed for this peer; sent so the peripheral can compensate when stamping its reply.
sequence_number: u32Monotonic sequence number used to detect drops/reordering.
Implementations§
Trait Implementations§
Source§impl Debug for ControlPacket
impl Debug for ControlPacket
Source§impl<'de> Deserialize<'de> for ControlPacket
impl<'de> Deserialize<'de> for ControlPacket
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ControlPacket
impl PartialEq for ControlPacket
Source§fn eq(&self, other: &ControlPacket) -> bool
fn eq(&self, other: &ControlPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControlPacket
impl Serialize for ControlPacket
impl StructuralPartialEq for ControlPacket
Auto Trait Implementations§
impl Freeze for ControlPacket
impl RefUnwindSafe for ControlPacket
impl Send for ControlPacket
impl Sync for ControlPacket
impl Unpin for ControlPacket
impl UnsafeUnpin for ControlPacket
impl UnwindSafe for ControlPacket
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