pub enum FanControlMethod {
None = 0,
Manual = 1,
Auto = 2,
}
Expand description
The way the fan speed is controlled.
Variants§
None = 0
No fan speed control.
Manual = 1
Manual fan speed control via the PWM interface.
Auto = 2
Automatic fan speed control (by the kernel).
Implementations§
Source§impl FanControlMethod
impl FanControlMethod
Sourcepub fn from_repr(repr: u32) -> Option<Self>
pub fn from_repr(repr: u32) -> Option<Self>
Create FanControlMethod from a digit in the SysFS.
Trait Implementations§
Source§impl Clone for FanControlMethod
impl Clone for FanControlMethod
Source§fn clone(&self) -> FanControlMethod
fn clone(&self) -> FanControlMethod
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 FanControlMethod
impl Debug for FanControlMethod
impl Copy for FanControlMethod
Auto Trait Implementations§
impl Freeze for FanControlMethod
impl RefUnwindSafe for FanControlMethod
impl Send for FanControlMethod
impl Sync for FanControlMethod
impl Unpin for FanControlMethod
impl UnwindSafe for FanControlMethod
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