pub struct TcpSnapshot {
pub rtt: Duration,
pub state: &'static str,
}Expand description
Point-in-time snapshot of kernel TCP bookkeeping for a socket. Populated
from a single getsockopt(TCP_INFO) syscall so callers that want both
the smoothed RTT and the FSM state don’t pay for two trips into the
kernel. Field set is deliberately narrow — extend with more tcp_info
members if the log prefix grows.
Fields§
§rtt: Duration§state: &'static strTrait Implementations§
Source§impl Clone for TcpSnapshot
impl Clone for TcpSnapshot
Source§fn clone(&self) -> TcpSnapshot
fn clone(&self) -> TcpSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TcpSnapshot
impl RefUnwindSafe for TcpSnapshot
impl Send for TcpSnapshot
impl Sync for TcpSnapshot
impl Unpin for TcpSnapshot
impl UnsafeUnpin for TcpSnapshot
impl UnwindSafe for TcpSnapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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