#[repr(C)]
pub struct tcp_info {
Show 56 fields pub tcpi_state: __u8, pub tcpi_ca_state: __u8, pub tcpi_retransmits: __u8, pub tcpi_probes: __u8, pub tcpi_backoff: __u8, pub tcpi_options: __u8, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub tcpi_rto: __u32, pub tcpi_ato: __u32, pub tcpi_snd_mss: __u32, pub tcpi_rcv_mss: __u32, pub tcpi_unacked: __u32, pub tcpi_sacked: __u32, pub tcpi_lost: __u32, pub tcpi_retrans: __u32, pub tcpi_fackets: __u32, pub tcpi_last_data_sent: __u32, pub tcpi_last_ack_sent: __u32, pub tcpi_last_data_recv: __u32, pub tcpi_last_ack_recv: __u32, pub tcpi_pmtu: __u32, pub tcpi_rcv_ssthresh: __u32, pub tcpi_rtt: __u32, pub tcpi_rttvar: __u32, pub tcpi_snd_ssthresh: __u32, pub tcpi_snd_cwnd: __u32, pub tcpi_advmss: __u32, pub tcpi_reordering: __u32, pub tcpi_rcv_rtt: __u32, pub tcpi_rcv_space: __u32, pub tcpi_total_retrans: __u32, pub tcpi_pacing_rate: __u64, pub tcpi_max_pacing_rate: __u64, pub tcpi_bytes_acked: __u64, pub tcpi_bytes_received: __u64, pub tcpi_segs_out: __u32, pub tcpi_segs_in: __u32, pub tcpi_notsent_bytes: __u32, pub tcpi_min_rtt: __u32, pub tcpi_data_segs_in: __u32, pub tcpi_data_segs_out: __u32, pub tcpi_delivery_rate: __u64, pub tcpi_busy_time: __u64, pub tcpi_rwnd_limited: __u64, pub tcpi_sndbuf_limited: __u64, pub tcpi_delivered: __u32, pub tcpi_delivered_ce: __u32, pub tcpi_bytes_sent: __u64, pub tcpi_bytes_retrans: __u64, pub tcpi_dsack_dups: __u32, pub tcpi_reord_seen: __u32, pub tcpi_rcv_ooopack: __u32, pub tcpi_snd_wnd: __u32, pub tcpi_rcv_wnd: __u32, pub tcpi_rehash: __u32,
}

Fields§

§tcpi_state: __u8§tcpi_ca_state: __u8§tcpi_retransmits: __u8§tcpi_probes: __u8§tcpi_backoff: __u8§tcpi_options: __u8§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§tcpi_rto: __u32§tcpi_ato: __u32§tcpi_snd_mss: __u32§tcpi_rcv_mss: __u32§tcpi_unacked: __u32§tcpi_sacked: __u32§tcpi_lost: __u32§tcpi_retrans: __u32§tcpi_fackets: __u32§tcpi_last_data_sent: __u32§tcpi_last_ack_sent: __u32§tcpi_last_data_recv: __u32§tcpi_last_ack_recv: __u32§tcpi_pmtu: __u32§tcpi_rcv_ssthresh: __u32§tcpi_rtt: __u32§tcpi_rttvar: __u32§tcpi_snd_ssthresh: __u32§tcpi_snd_cwnd: __u32§tcpi_advmss: __u32§tcpi_reordering: __u32§tcpi_rcv_rtt: __u32§tcpi_rcv_space: __u32§tcpi_total_retrans: __u32§tcpi_pacing_rate: __u64§tcpi_max_pacing_rate: __u64§tcpi_bytes_acked: __u64§tcpi_bytes_received: __u64§tcpi_segs_out: __u32§tcpi_segs_in: __u32§tcpi_notsent_bytes: __u32§tcpi_min_rtt: __u32§tcpi_data_segs_in: __u32§tcpi_data_segs_out: __u32§tcpi_delivery_rate: __u64§tcpi_busy_time: __u64§tcpi_rwnd_limited: __u64§tcpi_sndbuf_limited: __u64§tcpi_delivered: __u32§tcpi_delivered_ce: __u32§tcpi_bytes_sent: __u64§tcpi_bytes_retrans: __u64§tcpi_dsack_dups: __u32§tcpi_reord_seen: __u32§tcpi_rcv_ooopack: __u32§tcpi_snd_wnd: __u32§tcpi_rcv_wnd: __u32§tcpi_rehash: __u32

Implementations§

source§

impl tcp_info

source

pub fn tcpi_snd_wscale(&self) -> __u8

source

pub fn set_tcpi_snd_wscale(&mut self, val: __u8)

source

pub fn tcpi_rcv_wscale(&self) -> __u8

source

pub fn set_tcpi_rcv_wscale(&mut self, val: __u8)

source

pub fn tcpi_delivery_rate_app_limited(&self) -> __u8

source

pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8)

source

pub fn tcpi_fastopen_client_fail(&self) -> __u8

source

pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8)

source

pub fn new_bitfield_1( tcpi_snd_wscale: __u8, tcpi_rcv_wscale: __u8, tcpi_delivery_rate_app_limited: __u8, tcpi_fastopen_client_fail: __u8 ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

source§

impl Clone for tcp_info

source§

fn clone(&self) -> tcp_info

Returns a copy 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 tcp_info

source§

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

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

impl Copy for tcp_info

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.