pub enum FanAssignment {
Auto,
Manual {
pwm: u8,
},
Curve {
curve_name: String,
temp_sensor_id: String,
},
}Expand description
How a fan should be controlled.
Variants§
Auto
Automatic (BIOS) control – daemon doesn’t touch this fan.
Manual
Fixed manual PWM value.
Curve
Controlled by a named curve tracking a specific temp sensor.
Trait Implementations§
Source§impl Clone for FanAssignment
impl Clone for FanAssignment
Source§fn clone(&self) -> FanAssignment
fn clone(&self) -> FanAssignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FanAssignment
impl Debug for FanAssignment
Source§impl<'de> Deserialize<'de> for FanAssignment
impl<'de> Deserialize<'de> for FanAssignment
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 FanAssignment
impl RefUnwindSafe for FanAssignment
impl Send for FanAssignment
impl Sync for FanAssignment
impl Unpin for FanAssignment
impl UnwindSafe for FanAssignment
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