pub struct FanStatus {
pub id: String,
pub label: Option<String>,
pub hwmon_name: String,
pub pwm: Option<u8>,
pub pwm_enable: Option<u8>,
pub rpm: Option<u32>,
}Expand description
Live readings for a fan.
Fields§
§id: String§label: Option<String>§hwmon_name: String§pwm: Option<u8>Current PWM value 0-255
pwm_enable: Option<u8>Current PWM enable mode: 0=off, 1=manual, 2=auto
rpm: Option<u32>Current fan speed in RPM
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FanStatus
impl<'de> Deserialize<'de> for FanStatus
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 FanStatus
impl RefUnwindSafe for FanStatus
impl Send for FanStatus
impl Sync for FanStatus
impl Unpin for FanStatus
impl UnwindSafe for FanStatus
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