pub struct ConnStats {
pub recv_bytes: u64,
pub send_bytes: u64,
pub recv_msgs: u64,
pub send_msgs: u64,
pub recv_events: u64,
pub send_events: u64,
}Expand description
Lightweight rolling counters carried by every Conn.
Mirrors the per-connection byte counters and event totals that
the C engine carries on struct conn (recv_bytes, send_bytes,
events).
Fields§
§recv_bytes: u64Bytes successfully read into the recv mbuf chain.
send_bytes: u64Bytes successfully written from the send mbuf chain.
recv_msgs: u64Number of messages enqueued onto imsg_q.
send_msgs: u64Number of messages enqueued onto omsg_q.
recv_events: u64Number of times the read path completed.
send_events: u64Number of times the write path completed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnStats
impl RefUnwindSafe for ConnStats
impl Send for ConnStats
impl Sync for ConnStats
impl Unpin for ConnStats
impl UnsafeUnpin for ConnStats
impl UnwindSafe for ConnStats
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