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
Auto Trait Implementations
impl RefUnwindSafe for NetworkUsage
impl Send for NetworkUsage
impl Sync for NetworkUsage
impl Unpin for NetworkUsage
impl UnwindSafe for NetworkUsage
Blanket Implementations
Mutably borrows from an owned value. Read more