pub struct NetworkStats {
pub download_speed: u64,
pub upload_speed: u64,
pub total_downloaded: u64,
pub total_uploaded: u64,
pub connection_duration: u64,
pub interface: String,
}Expand description
Network statistics for bandwidth monitoring
Fields§
§download_speed: u64Current download speed in bytes per second
upload_speed: u64Current upload speed in bytes per second
total_downloaded: u64Total bytes downloaded since connection
total_uploaded: u64Total bytes uploaded since connection
connection_duration: u64Connection duration in seconds
interface: StringNetwork interface name
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
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 NetworkStats
impl Debug for NetworkStats
Source§impl<'de> Deserialize<'de> for NetworkStats
impl<'de> Deserialize<'de> for NetworkStats
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 NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnsafeUnpin for NetworkStats
impl UnwindSafe for NetworkStats
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