#[repr(i32)]pub enum PstateId {
Show 18 variants
P0 = 0,
P1 = 1,
P2 = 2,
P3 = 3,
P4 = 4,
P5 = 5,
P6 = 6,
P7 = 7,
P8 = 8,
P9 = 9,
P10 = 10,
P11 = 11,
P12 = 12,
P13 = 13,
P14 = 14,
P15 = 15,
Undefined = 16,
All = 17,
}Variants§
P0 = 0
P1 = 1
P2 = 2
P3 = 3
P4 = 4
P5 = 5
P6 = 6
P7 = 7
P8 = 8
P9 = 9
P10 = 10
P11 = 11
P12 = 12
P13 = 13
P14 = 14
P15 = 15
Undefined = 16
All = 17
Implementations§
Source§impl PstateId
impl PstateId
pub fn from_raw(raw: NV_GPU_PERF_PSTATE_ID) -> Result<Self, ArgumentRangeError>
pub fn raw(&self) -> NV_GPU_PERF_PSTATE_ID
pub fn values() -> Cloned<Iter<'static, Self>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PstateId
impl<'de> Deserialize<'de> for PstateId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<i32> for PstateId
impl Into<i32> for PstateId
Source§fn into(self) -> NV_GPU_PERF_PSTATE_ID
fn into(self) -> NV_GPU_PERF_PSTATE_ID
Converts this type into the (usually inferred) input type.
Source§impl Ord for PstateId
impl Ord for PstateId
Source§impl PartialOrd for PstateId
impl PartialOrd for PstateId
impl Copy for PstateId
impl Eq for PstateId
impl StructuralPartialEq for PstateId
Auto Trait Implementations§
impl Freeze for PstateId
impl RefUnwindSafe for PstateId
impl Send for PstateId
impl Sync for PstateId
impl Unpin for PstateId
impl UnwindSafe for PstateId
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