Struct sbp::messages::piksi::NetworkUsage[][src]

pub struct NetworkUsage {
    pub duration: u64,
    pub total_bytes: u64,
    pub rx_bytes: u32,
    pub tx_bytes: u32,
    pub interface_name: SbpString<[u8; 16], Unterminated>,
}
Expand description

Bandwidth usage measurement for a single interface

The bandwidth usage for each interface can be reported within this struct and utilize multiple fields to fully specify the type of traffic that is being tracked. As either the interval of collection or the collection time may vary, both a timestamp and period field is provided, though may not necessarily be populated with a value.

Fields

duration: u64

Duration over which the measurement was collected

total_bytes: u64

Number of bytes handled in total within period

rx_bytes: u32

Number of bytes transmitted within period

tx_bytes: u32

Number of bytes received within period

interface_name: SbpString<[u8; 16], Unterminated>

Interface Name

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.