pub struct DiskUsageSensor { /* private fields */ }Expand description
Sensor that reads disk usage percentage for a given mount point.
Uses statvfs to determine the fraction of used space.
Returns a value in [0.0, 100.0].
Implementations§
Trait Implementations§
Source§impl Debug for DiskUsageSensor
impl Debug for DiskUsageSensor
Source§impl SensorDevice for DiskUsageSensor
impl SensorDevice for DiskUsageSensor
Auto Trait Implementations§
impl Freeze for DiskUsageSensor
impl RefUnwindSafe for DiskUsageSensor
impl Send for DiskUsageSensor
impl Sync for DiskUsageSensor
impl Unpin for DiskUsageSensor
impl UnsafeUnpin for DiskUsageSensor
impl UnwindSafe for DiskUsageSensor
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