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
Tdp
Bound clock speed by the TDP of the device.
Unlimited
No bound for clock speed.
Implementations
sourceimpl 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
sourceimpl Clone for ClockLimitId
impl Clone for ClockLimitId
sourcefn clone(&self) -> ClockLimitId
fn clone(&self) -> ClockLimitId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ClockLimitId
impl Debug for ClockLimitId
sourceimpl Hash for ClockLimitId
impl Hash for ClockLimitId
sourceimpl PartialEq<ClockLimitId> for ClockLimitId
impl PartialEq<ClockLimitId> for ClockLimitId
sourceimpl TryFrom<u32> for ClockLimitId
impl TryFrom<u32> for ClockLimitId
impl Eq for ClockLimitId
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more