Struct linux_raw_sys::general::tcp_info
source · [−]#[repr(C)]pub struct tcp_info {Show 54 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,
}Fields
tcpi_state: __u8tcpi_ca_state: __u8tcpi_retransmits: __u8tcpi_probes: __u8tcpi_backoff: __u8tcpi_options: __u8_bitfield_align_1: [u8; 0]_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>tcpi_rto: __u32tcpi_ato: __u32tcpi_snd_mss: __u32tcpi_rcv_mss: __u32tcpi_unacked: __u32tcpi_sacked: __u32tcpi_lost: __u32tcpi_retrans: __u32tcpi_fackets: __u32tcpi_last_data_sent: __u32tcpi_last_ack_sent: __u32tcpi_last_data_recv: __u32tcpi_last_ack_recv: __u32tcpi_pmtu: __u32tcpi_rcv_ssthresh: __u32tcpi_rtt: __u32tcpi_rttvar: __u32tcpi_snd_ssthresh: __u32tcpi_snd_cwnd: __u32tcpi_advmss: __u32tcpi_reordering: __u32tcpi_rcv_rtt: __u32tcpi_rcv_space: __u32tcpi_total_retrans: __u32tcpi_pacing_rate: __u64tcpi_max_pacing_rate: __u64tcpi_bytes_acked: __u64tcpi_bytes_received: __u64tcpi_segs_out: __u32tcpi_segs_in: __u32tcpi_notsent_bytes: __u32tcpi_min_rtt: __u32tcpi_data_segs_in: __u32tcpi_data_segs_out: __u32tcpi_delivery_rate: __u64tcpi_busy_time: __u64tcpi_rwnd_limited: __u64tcpi_sndbuf_limited: __u64tcpi_delivered: __u32tcpi_delivered_ce: __u32tcpi_bytes_sent: __u64tcpi_bytes_retrans: __u64tcpi_dsack_dups: __u32tcpi_reord_seen: __u32tcpi_rcv_ooopack: __u32tcpi_snd_wnd: __u32Implementations
sourceimpl tcp_info
impl tcp_info
pub fn tcpi_snd_wscale(&self) -> __u8
pub fn set_tcpi_snd_wscale(&mut self, val: __u8)
pub fn tcpi_rcv_wscale(&self) -> __u8
pub fn set_tcpi_rcv_wscale(&mut self, val: __u8)
pub fn tcpi_delivery_rate_app_limited(&self) -> __u8
pub fn set_tcpi_delivery_rate_app_limited(&mut self, val: __u8)
pub fn tcpi_fastopen_client_fail(&self) -> __u8
pub fn set_tcpi_fastopen_client_fail(&mut self, val: __u8)
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
Auto Trait Implementations
impl RefUnwindSafe for tcp_info
impl Send for tcp_info
impl Sync for tcp_info
impl Unpin for tcp_info
impl UnwindSafe for tcp_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more