#[repr(u32)]pub enum PowerMizerMode {
Adaptive = 0,
PreferMaximumPerformance = 1,
Auto = 2,
PreferConsistentPerformance = 3,
}Variants§
Trait Implementations§
Source§impl Clone for PowerMizerMode
impl Clone for PowerMizerMode
Source§fn clone(&self) -> PowerMizerMode
fn clone(&self) -> PowerMizerMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PowerMizerMode
impl Debug for PowerMizerMode
Source§impl From<PowerMizerMode> for u32
impl From<PowerMizerMode> for u32
Source§fn from(enum_value: PowerMizerMode) -> Self
fn from(enum_value: PowerMizerMode) -> Self
Converts to this type from the input type.
Source§impl Hash for PowerMizerMode
impl Hash for PowerMizerMode
Source§impl PartialEq for PowerMizerMode
impl PartialEq for PowerMizerMode
Source§fn eq(&self, other: &PowerMizerMode) -> bool
fn eq(&self, other: &PowerMizerMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for PowerMizerMode
impl TryFrom<u32> for PowerMizerMode
Source§type Error = TryFromPrimitiveError<PowerMizerMode>
type Error = TryFromPrimitiveError<PowerMizerMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerMizerMode
impl TryFromPrimitive for PowerMizerMode
const NAME: &'static str = "PowerMizerMode"
type Primitive = u32
type Error = TryFromPrimitiveError<PowerMizerMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PowerMizerMode
impl Eq for PowerMizerMode
impl StructuralPartialEq for PowerMizerMode
Auto Trait Implementations§
impl Freeze for PowerMizerMode
impl RefUnwindSafe for PowerMizerMode
impl Send for PowerMizerMode
impl Sync for PowerMizerMode
impl Unpin for PowerMizerMode
impl UnsafeUnpin for PowerMizerMode
impl UnwindSafe for PowerMizerMode
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