pub struct Flow {
pub proto: L4Proto,
pub local: SocketAddr,
pub remote: SocketAddr,
pub state: TcpState,
pub process: ProcessInfo,
pub bytes_in: u64,
pub bytes_out: u64,
pub rtt_us: Option<u32>,
}Expand description
An established or in-flight connection to/from this host.
Fields§
§proto: L4Proto§local: SocketAddrLocal socket address.
remote: SocketAddrRemote peer socket address.
state: TcpState§process: ProcessInfo§bytes_in: u64Bytes received on this flow.
bytes_out: u64Bytes sent on this flow.
rtt_us: Option<u32>Smoothed round-trip time in microseconds, when the kernel has one (TCP only, and only once the connection has carried data).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Flow
impl<'de> Deserialize<'de> for Flow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Flow
impl StructuralPartialEq for Flow
Auto Trait Implementations§
impl Freeze for Flow
impl RefUnwindSafe for Flow
impl Send for Flow
impl Sync for Flow
impl Unpin for Flow
impl UnsafeUnpin for Flow
impl UnwindSafe for Flow
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