Struct BearerStats
#[non_exhaustive]pub struct BearerStats {
pub rx_bytes: Option<u64>,
pub tx_bytes: Option<u64>,
pub start_date: Option<u64>,
pub duration: Option<u32>,
pub attempts: Option<u32>,
pub failed_attempts: Option<u32>,
pub total_rx_bytes: Option<u64>,
pub total_tx_bytes: Option<u64>,
pub total_duration: Option<u32>,
pub uplink_speed: Option<u64>,
pub downlink_speed: Option<u64>,
}Expand description
Statistics of a bearer.
Some fields describe the ongoing connection. The others sum up all connections of the bearer. The ongoing values keep their last value after a disconnect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rx_bytes: Option<u64>The bytes received in the ongoing connection.
tx_bytes: Option<u64>The bytes sent in the ongoing connection.
start_date: Option<u64>The start of the ongoing connection, in seconds since the epoch.
Added in ModemManager 1.20.
duration: Option<u32>The duration of the ongoing connection, in seconds.
attempts: Option<u32>The number of connection attempts.
Added in ModemManager 1.14.
failed_attempts: Option<u32>The number of failed connection attempts.
Added in ModemManager 1.14.
total_rx_bytes: Option<u64>The bytes received in all successful connections.
Added in ModemManager 1.14.
total_tx_bytes: Option<u64>The bytes sent in all successful connections.
Added in ModemManager 1.14.
total_duration: Option<u32>The duration of all successful connections, in seconds.
Added in ModemManager 1.14.
uplink_speed: Option<u64>The negotiated uplink bit rate, in bits per second.
Added in ModemManager 1.20.
downlink_speed: Option<u64>The negotiated downlink bit rate, in bits per second.
Added in ModemManager 1.20.
Trait Implementations§
§impl Clone for BearerStats
impl Clone for BearerStats
§fn clone(&self) -> BearerStats
fn clone(&self) -> BearerStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more