#[repr(u32)]pub enum PowerProfileType {
Show 16 variants
MaxP = 0,
MaxQ = 1,
Compute = 2,
MemoryBound = 3,
Network = 4,
Balanced = 5,
LlmInference = 6,
LlmTraining = 7,
Rbm = 8,
Dcpcie = 9,
HmmaSparse = 10,
HmmaDense = 11,
SyncBalanced = 12,
Hpc = 13,
Mig = 14,
Max = 15,
}Variants§
MaxP = 0
MaxQ = 1
Compute = 2
MemoryBound = 3
Network = 4
Balanced = 5
LlmInference = 6
LlmTraining = 7
Rbm = 8
Dcpcie = 9
HmmaSparse = 10
HmmaDense = 11
SyncBalanced = 12
Hpc = 13
Mig = 14
Max = 15
Trait Implementations§
Source§impl Clone for PowerProfileType
impl Clone for PowerProfileType
Source§fn clone(&self) -> PowerProfileType
fn clone(&self) -> PowerProfileType
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 PowerProfileType
impl Debug for PowerProfileType
Source§impl From<PowerProfileType> for nvmlPowerProfileType_t
impl From<PowerProfileType> for nvmlPowerProfileType_t
Source§fn from(value: PowerProfileType) -> Self
fn from(value: PowerProfileType) -> Self
Converts to this type from the input type.
Source§impl From<PowerProfileType> for u32
impl From<PowerProfileType> for u32
Source§fn from(enum_value: PowerProfileType) -> Self
fn from(enum_value: PowerProfileType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlPowerProfileType_t> for PowerProfileType
impl From<nvmlPowerProfileType_t> for PowerProfileType
Source§fn from(value: nvmlPowerProfileType_t) -> Self
fn from(value: nvmlPowerProfileType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for PowerProfileType
impl Hash for PowerProfileType
Source§impl PartialEq for PowerProfileType
impl PartialEq for PowerProfileType
Source§fn eq(&self, other: &PowerProfileType) -> bool
fn eq(&self, other: &PowerProfileType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for PowerProfileType
impl TryFrom<u32> for PowerProfileType
Source§type Error = TryFromPrimitiveError<PowerProfileType>
type Error = TryFromPrimitiveError<PowerProfileType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerProfileType
impl TryFromPrimitive for PowerProfileType
const NAME: &'static str = "PowerProfileType"
type Primitive = u32
type Error = TryFromPrimitiveError<PowerProfileType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PowerProfileType
impl Eq for PowerProfileType
impl StructuralPartialEq for PowerProfileType
Auto Trait Implementations§
impl Freeze for PowerProfileType
impl RefUnwindSafe for PowerProfileType
impl Send for PowerProfileType
impl Sync for PowerProfileType
impl Unpin for PowerProfileType
impl UnsafeUnpin for PowerProfileType
impl UnwindSafe for PowerProfileType
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