pub struct Sensors {
pub temperature: Option<String>,
pub network: Vec<String>,
}
Expand description
Contains the configuration for the sensors
Fields§
§temperature: Option<String>
If set, contains a temperature label to search in sysinfo
’s component reports.
network: Vec<String>
If set, contains a list of network interface to monitor.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sensors
impl<'de> Deserialize<'de> for Sensors
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 Sensors
impl RefUnwindSafe for Sensors
impl Send for Sensors
impl Sync for Sensors
impl Unpin for Sensors
impl UnwindSafe for Sensors
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