#[non_exhaustive]pub struct Connections {
pub tcp_established: Option<u64>,
pub tcp_time_wait: Option<u64>,
pub tcp_total: Option<u64>,
pub udp: Option<u64>,
}Expand description
How many network connections the machine has open, as counts. A value an
OS does not report is None.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tcp_established: Option<u64>Open TCP connections.
tcp_time_wait: Option<u64>Closed TCP connections waiting out the TIME_WAIT period.
tcp_total: Option<u64>Every TCP socket, listening ones included.
udp: Option<u64>UDP sockets.
Trait Implementations§
Source§impl Clone for Connections
impl Clone for Connections
impl Copy for Connections
Source§impl Debug for Connections
impl Debug for Connections
Source§impl Default for Connections
impl Default for Connections
impl Eq for Connections
Source§impl PartialEq for Connections
impl PartialEq for Connections
impl StructuralPartialEq for Connections
Auto Trait Implementations§
impl Forget for Connections
impl Freeze for Connections
impl RefUnwindSafe for Connections
impl Send for Connections
impl Sync for Connections
impl Unpin for Connections
impl UnsafeUnpin for Connections
impl UnwindSafe for Connections
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