Struct sbp::messages::piksi::network_usage::NetworkUsage
source · 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§
source§impl Clone for NetworkUsage
impl Clone for NetworkUsage
source§fn clone(&self) -> NetworkUsage
fn clone(&self) -> NetworkUsage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NetworkUsage
impl Debug for NetworkUsage
source§impl<'de> Deserialize<'de> for NetworkUsage
impl<'de> Deserialize<'de> for NetworkUsage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for NetworkUsage
impl PartialEq for NetworkUsage
source§fn eq(&self, other: &NetworkUsage) -> bool
fn eq(&self, other: &NetworkUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkUsage
impl Serialize for NetworkUsage
impl StructuralPartialEq for NetworkUsage
Auto Trait Implementations§
impl Freeze for NetworkUsage
impl RefUnwindSafe for NetworkUsage
impl Send for NetworkUsage
impl Sync for NetworkUsage
impl Unpin for NetworkUsage
impl UnwindSafe for NetworkUsage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more