#[non_exhaustive]pub struct TcpCounters {
pub active_opens: u64,
pub passive_opens: u64,
pub attempt_fails: u64,
pub estab_resets: u64,
pub curr_estab: u64,
pub in_segs: u64,
pub out_segs: u64,
pub out_rsts: u64,
}Expand description
A snapshot of one family’s TCP counters (see proto_counters).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.active_opens: u64Connects that sent a SYN.
passive_opens: u64Connections a listener of the code under test took.
attempt_fails: u64Connects that failed after sending their SYN.
estab_resets: u64Established connections ended by a reset.
curr_estab: u64Connected streams open now.
in_segs: u64Data segments received (MSS-sized pieces of each write; handshake, ACK and FIN segments are not counted).
out_segs: u64Data segments sent, counted as in_segs.
out_rsts: u64Resets the host sent.
Trait Implementations§
Source§impl Clone for TcpCounters
impl Clone for TcpCounters
impl Copy for TcpCounters
Source§impl Debug for TcpCounters
impl Debug for TcpCounters
Source§impl Default for TcpCounters
impl Default for TcpCounters
impl Eq for TcpCounters
Source§impl PartialEq for TcpCounters
impl PartialEq for TcpCounters
impl StructuralPartialEq for TcpCounters
Auto Trait Implementations§
impl Forget for TcpCounters
impl Freeze for TcpCounters
impl RefUnwindSafe for TcpCounters
impl Send for TcpCounters
impl Sync for TcpCounters
impl Unpin for TcpCounters
impl UnsafeUnpin for TcpCounters
impl UnwindSafe for TcpCounters
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