Skip to main content

TcpInfo

Struct TcpInfo 

Source
pub struct TcpInfo {
Show 13 fields pub state: State, pub ca_state: CongestionControlState, pub rto_usec: Option<u32>, pub tcpi_last_data_sent_msec: Option<u32>, pub tcpi_last_ack_recv_msec: Option<u32>, pub rtt_usec: Option<u32>, pub rtt_var_usec: Option<u32>, pub snd_ssthresh: u32, pub snd_cwnd: u32, pub tcpi_total_retrans: u32, pub tcpi_segs_out: u64, pub tcpi_segs_in: u64, pub reorder_seen: bool,
}
Expand description

Extension type for [fnet_tcp::Info].

Fields§

§state: State

The state of the TCP connection.

§ca_state: CongestionControlState

The congestion control state of the TCP connection.

§rto_usec: Option<u32>

The retransmission timeout of the TCP connection in microseconds.

§tcpi_last_data_sent_msec: Option<u32>

The time since the most recent data was sent on the connection in milliseconds.

§tcpi_last_ack_recv_msec: Option<u32>

The time since the most recent ACK was received in milliseconds.

§rtt_usec: Option<u32>

The estimated smoothed roundtrip time in microseconds.

§rtt_var_usec: Option<u32>

The smoothed mean deviation of the roundtrip time in microseconds.

§snd_ssthresh: u32

The sending slow start threshold in segments.

§snd_cwnd: u32

The current sending congestion window in segments.

§tcpi_total_retrans: u32

The total number of retransmissions.

§tcpi_segs_out: u64

The total number of segments sent.

§tcpi_segs_in: u64

The total number of segments received.

§reorder_seen: bool

Whether reordering has been seen on the connection.

Trait Implementations§

Source§

impl Clone for TcpInfo

Source§

fn clone(&self) -> TcpInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TcpInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<TcpInfo> for Info

Source§

fn from(info: TcpInfo) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for TcpInfo

Source§

fn eq(&self, other: &TcpInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<Info> for TcpInfo

Source§

type Error = TcpInfoError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Info) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Eq for TcpInfo

Source§

impl StructuralPartialEq for TcpInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

Source§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoExt<U> for T
where U: FromExt<T>,

Source§

fn into_ext(self) -> U

Performs the conversion.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoExt<U> for T
where U: TryFromExt<T>,

Source§

type Error = <U as TryFromExt<T>>::Error

Source§

fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>

Tries to perform the conversion.
§

impl<St> WithTag for St

§

fn tagged<T>(self, tag: T) -> Tagged<T, St>

Produce a new stream from this one which yields item tupled with a constant tag