pub enum FanControl {
DutyCycle(u8),
Rpm(u16),
}Expand description
Drive method for a fan.
A fan can be controlled by either setting the duty cycle or a target RPM.
Variants§
Trait Implementations§
Source§impl Clone for FanControl
impl Clone for FanControl
Source§fn clone(&self) -> FanControl
fn clone(&self) -> FanControl
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 FanControl
impl Debug for FanControl
Source§impl PartialEq for FanControl
impl PartialEq for FanControl
impl Copy for FanControl
impl Eq for FanControl
impl StructuralPartialEq for FanControl
Auto Trait Implementations§
impl Freeze for FanControl
impl RefUnwindSafe for FanControl
impl Send for FanControl
impl Sync for FanControl
impl Unpin for FanControl
impl UnwindSafe for FanControl
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