Struct libdata::stats::Stats
[−]
pub struct Stats { pub dir_in: Stat, pub dir_out: Stat, }
The flow statistics in both directions.
This is simply a pair of in and out directions.
In case a direction is empty (eg. all zeroes), it is omitted from the serialized result, to avoid unnecessary zero-clutter. Therefore, if some interval was „calm“ (no traffic), an empty dict is serialized.
Fields
dir_in: Stat
Statistics in the inbound direction.
dir_out: Stat
Statistics in the outbound direction.
Methods
impl Stats
fn combine_overlay(&mut self, other: &Self)
Joins the stats over each other.
It assumes they happen during the same time.
fn combine_seq(&mut self, other: &Self)
Joins the stats side by side.
Unlike combine_overlay
, this acts as joining them sequentially. The
difference is on the speeds.
Trait Implementations
impl Clone for Stats
fn clone(&self) -> Stats
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more