pub struct DirectionStats {
pub packets: u64,
pub bytes: u64,
pub first_seen: Duration,
pub last_seen: Duration,
pub max_packet_len: Option<u64>,
}Expand description
Per-direction traffic statistics.
Fields§
§packets: u64Number of packets in this direction.
bytes: u64Total bytes in this direction.
first_seen: DurationTimestamp of the first packet in this direction.
last_seen: DurationTimestamp of the most recent packet in this direction.
max_packet_len: Option<u64>Maximum packet length in this direction (if tracking enabled).
Implementations§
Trait Implementations§
Source§impl Clone for DirectionStats
impl Clone for DirectionStats
Source§fn clone(&self) -> DirectionStats
fn clone(&self) -> DirectionStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirectionStats
impl RefUnwindSafe for DirectionStats
impl Send for DirectionStats
impl Sync for DirectionStats
impl Unpin for DirectionStats
impl UnsafeUnpin for DirectionStats
impl UnwindSafe for DirectionStats
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