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