Struct libdata::stats::Size []

pub struct Size {
    pub packets: Count,
    pub size: Bytes,
}

A poorer version of Stat

This one contains only the number of packets and the size. It is used during the construction of the flow slice and the other statistics are added later on.

Because the duration and the fact it relates to a single flow is known during the conversion, the other statistics are not needed and this makes it easier to manipulate.

Fields

Number of packets.

Number of bytes (including headers).

Methods

impl Size

Checks if other is equal or smaller in each subfield.

This basically checks if it is safe to do self - other.

Trait Implementations

impl Add for Size

The resulting type after applying the + operator

The method for the + operator

impl AddAssign for Size

The method for the += operator

impl Clone for Size

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Size

Formats the value using the given formatter.

impl Default for Size

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

impl Eq for Size

impl PartialEq for Size

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

This method tests for !=.

impl Sub for Size

The resulting type after applying the - operator

The method for the - operator