pub struct Status {
pub sent_seq: u32,
pub acked_seq: u32,
pub next_seq: u32,
pub pkts_sent: u32,
pub retx_sent: u32,
pub nack_rx: u32,
}Expand description
心跳(STATUS)包的内容。设备默认每 1 ms 发一次。
Fields§
§sent_seq: u32序号小于它的包都已至少发送过一次。
acked_seq: u32主机已确认的序号。
next_seq: u32下一个要打包的序号(已打包的可能仍在排队)。
pkts_sent: u32已发包数(含重传)。
retx_sent: u32重传包数。
nack_rx: u32设备收到的 NACK 数。
Implementations§
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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