pub struct Fan {
pub id: String,
pub label: Option<String>,
pub pwm_path: PathBuf,
pub pwm_enable_path: PathBuf,
pub rpm_path: Option<PathBuf>,
pub hwmon_name: String,
}Expand description
A discovered fan (PWM output + optional tachometer input).
Fields§
§id: StringUnique identifier, e.g. “hwmon3/pwm1”
label: Option<String>Human-readable label if available
pwm_path: PathBufAbsolute path to the pwmN file
pwm_enable_path: PathBufAbsolute path to the pwmN_enable file
rpm_path: Option<PathBuf>Absolute path to the fanN_input file (RPM), if present
hwmon_name: StringName of the parent hwmon device
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fan
impl<'de> Deserialize<'de> for Fan
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 Fan
impl RefUnwindSafe for Fan
impl Send for Fan
impl Sync for Fan
impl Unpin for Fan
impl UnwindSafe for Fan
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