Enum nvml_wrapper::enum_wrappers::device::ClockLimitId
source · pub enum ClockLimitId {
Tdp,
Unlimited,
}
Expand description
Clock limit IDs for use with crate::Device::set_gpu_locked_clocks()
.
Variants§
Implementations§
source§impl ClockLimitId
impl ClockLimitId
sourcepub fn as_c(&self) -> nvmlClockLimitId_enum
pub fn as_c(&self) -> nvmlClockLimitId_enum
Returns the C enum variant equivalent for the given Rust enum variant
Trait Implementations§
source§impl Clone for ClockLimitId
impl Clone for ClockLimitId
source§fn clone(&self) -> ClockLimitId
fn clone(&self) -> ClockLimitId
Returns a copy 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 ClockLimitId
impl Debug for ClockLimitId
source§impl Hash for ClockLimitId
impl Hash for ClockLimitId
source§impl PartialEq for ClockLimitId
impl PartialEq for ClockLimitId
source§fn eq(&self, other: &ClockLimitId) -> bool
fn eq(&self, other: &ClockLimitId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u32> for ClockLimitId
impl TryFrom<u32> for ClockLimitId
impl Eq for ClockLimitId
impl StructuralPartialEq for ClockLimitId
Auto Trait Implementations§
impl RefUnwindSafe for ClockLimitId
impl Send for ClockLimitId
impl Sync for ClockLimitId
impl Unpin for ClockLimitId
impl UnwindSafe for ClockLimitId
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