pub struct BandwidthStats {
pub total_bytes_transferred: u64,
pub peak_bandwidth_mbps: f64,
pub average_bandwidth_mbps: f64,
pub bandwidth_limit_violations: u64,
}Expand description
Bandwidth statistics.
Fields§
§total_bytes_transferred: u64Total bytes transferred across the network
peak_bandwidth_mbps: f64Peak bandwidth in MB/s
average_bandwidth_mbps: f64Average bandwidth in MB/s
bandwidth_limit_violations: u64Number of times bandwidth limits were exceeded
Trait Implementations§
Source§impl Clone for BandwidthStats
impl Clone for BandwidthStats
Source§fn clone(&self) -> BandwidthStats
fn clone(&self) -> BandwidthStats
Returns a duplicate 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 BandwidthStats
impl Debug for BandwidthStats
Source§impl Default for BandwidthStats
impl Default for BandwidthStats
Source§fn default() -> BandwidthStats
fn default() -> BandwidthStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BandwidthStats
impl<'de> Deserialize<'de> for BandwidthStats
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
Auto Trait Implementations§
impl Freeze for BandwidthStats
impl RefUnwindSafe for BandwidthStats
impl Send for BandwidthStats
impl Sync for BandwidthStats
impl Unpin for BandwidthStats
impl UnsafeUnpin for BandwidthStats
impl UnwindSafe for BandwidthStats
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