pub enum Sensor {
Available,
CpuUsage,
CpuTemperature,
MemoryUsage,
NetRx(String),
NetTx(String),
}Expand description
Contains the different types of sensors that are available
Variants§
Available
Tells if Home Assistant is available
CpuUsage
Sends the CPU usage in %
CpuTemperature
Sends the CPU temperature in °C
MemoryUsage
Sends the memory usage in %
NetRx(String)
Sends the download network rate in KiB/s
NetTx(String)
Sends the upload network rate in KiB/s
Implementations§
Trait Implementations§
Source§impl IntoEnumIterator for Sensor
impl IntoEnumIterator for Sensor
type Iterator = SensorIter
fn iter() -> SensorIter ⓘ
impl StructuralPartialEq for Sensor
Auto Trait Implementations§
impl Freeze for Sensor
impl RefUnwindSafe for Sensor
impl Send for Sensor
impl Sync for Sensor
impl Unpin for Sensor
impl UnwindSafe for Sensor
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