pub enum Request {
GetStatus,
SetManual {
fan_id: String,
pwm: u8,
},
SetCurve {
fan_id: String,
curve_name: String,
temp_sensor_id: String,
},
SetAuto {
fan_id: String,
},
ListCurves,
UpsertCurve {
name: String,
points: Vec<CurvePoint>,
},
DeleteCurve {
name: String,
},
SaveConfig,
ReloadConfig,
Subscribe,
Unsubscribe,
}Variants§
GetStatus
Request current status of all fans and temps.
SetManual
Set a fan to manual PWM.
SetCurve
Assign a curve to a fan.
SetAuto
Set a fan to automatic (BIOS) control.
ListCurves
List all configured curves.
UpsertCurve
Create or update a curve.
DeleteCurve
Delete a curve by name.
SaveConfig
Save current configuration to disk.
ReloadConfig
Reload configuration from disk.
Subscribe
Request the daemon to push periodic status updates.
Unsubscribe
Stop receiving periodic status updates.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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