pub struct NetworkThroughputSensor { /* private fields */ }Expand description
Sensor that reads network throughput from /proc/net/dev.
Returns bytes/sec since the last read. The first read returns 0. Monitors a specific interface (e.g., “eth0”, “wlan0”).
Implementations§
Trait Implementations§
Source§impl Debug for NetworkThroughputSensor
impl Debug for NetworkThroughputSensor
Auto Trait Implementations§
impl Freeze for NetworkThroughputSensor
impl RefUnwindSafe for NetworkThroughputSensor
impl Send for NetworkThroughputSensor
impl Sync for NetworkThroughputSensor
impl Unpin for NetworkThroughputSensor
impl UnsafeUnpin for NetworkThroughputSensor
impl UnwindSafe for NetworkThroughputSensor
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