#[repr(i32)]pub enum CoolerPolicy {
None = 0,
Manual = 1,
Performance = 2,
TemperatureDiscrete = 4,
TemperatureContinuous = 8,
Hybrid = 9,
Silent = 16,
Unknown32 = 32,
}Variants§
None = 0
Manual = 1
Manual adjustment of cooler level. Gets applied right away independent of temperature or performance level.
Performance = 2
GPU performance controls the cooler level.
TemperatureDiscrete = 4
Discrete thermal levels control the cooler level.
TemperatureContinuous = 8
Cooler level adjusted at continuous thermal levels.
Hybrid = 9
Hybrid of performance and temperature levels.
Silent = 16
Fan turns off at idle, default of MSI Gaming X
Unknown32 = 32
Apparently a default of some GPUs
Implementations§
Source§impl CoolerPolicy
impl CoolerPolicy
pub fn from_raw(raw: i32) -> Result<CoolerPolicy, ArgumentRangeError>
pub fn raw(&self) -> i32
pub fn values() -> Cloned<Iter<'static, CoolerPolicy>>
Trait Implementations§
Source§impl Clone for CoolerPolicy
impl Clone for CoolerPolicy
Source§fn clone(&self) -> CoolerPolicy
fn clone(&self) -> CoolerPolicy
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 CoolerPolicy
impl Debug for CoolerPolicy
Source§impl<'de> Deserialize<'de> for CoolerPolicy
impl<'de> Deserialize<'de> for CoolerPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoolerPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoolerPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CoolerPolicy
impl Display for CoolerPolicy
Source§impl Hash for CoolerPolicy
impl Hash for CoolerPolicy
Source§impl Into<i32> for CoolerPolicy
impl Into<i32> for CoolerPolicy
Source§impl Ord for CoolerPolicy
impl Ord for CoolerPolicy
Source§fn cmp(&self, other: &CoolerPolicy) -> Ordering
fn cmp(&self, other: &CoolerPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoolerPolicy
impl PartialEq for CoolerPolicy
Source§impl PartialOrd for CoolerPolicy
impl PartialOrd for CoolerPolicy
Source§impl Serialize for CoolerPolicy
impl Serialize for CoolerPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for CoolerPolicy
impl Eq for CoolerPolicy
impl StructuralPartialEq for CoolerPolicy
Auto Trait Implementations§
impl Freeze for CoolerPolicy
impl RefUnwindSafe for CoolerPolicy
impl Send for CoolerPolicy
impl Sync for CoolerPolicy
impl Unpin for CoolerPolicy
impl UnwindSafe for CoolerPolicy
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