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

Statistics in the inbound direction.

Statistics in the outbound direction.

Methods

impl Stats

Joins the stats over each other.

It assumes they happen during the same time.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Stats

Formats the value using the given formatter.

impl Default for Stats

Returns the "default value" for a type. Read more

impl Eq for Stats

impl PartialEq for Stats

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.