Struct linux_raw_sys::net::tcp_info
source · #[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
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 Freeze for tcp_info
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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)