Enum nvml_wrapper::enums::device::GpuLockedClocksSetting
source · [−]pub enum GpuLockedClocksSetting {
Numeric {
min_clock_mhz: u32,
max_clock_mhz: u32,
},
Symbolic {
lower_bound: ClockLimitId,
upper_bound: ClockLimitId,
},
}Expand description
Represents different types of sample values.
Variants
Numeric
Numeric setting that allows you to explicitly define minimum and maximum clock frequencies.
Symbolic
Symbolic setting that allows you to define lower and upper bounds for clock speed with various possibilities.
Not all combinations of lower_bound and upper_bound are valid.
Please see the docs for nvmlDeviceSetGpuLockedClocks in nvml.h to
learn more.
Implementations
Trait Implementations
sourceimpl Clone for GpuLockedClocksSetting
impl Clone for GpuLockedClocksSetting
sourcefn clone(&self) -> GpuLockedClocksSetting
fn clone(&self) -> GpuLockedClocksSetting
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 GpuLockedClocksSetting
impl Debug for GpuLockedClocksSetting
sourceimpl Hash for GpuLockedClocksSetting
impl Hash for GpuLockedClocksSetting
sourceimpl PartialEq<GpuLockedClocksSetting> for GpuLockedClocksSetting
impl PartialEq<GpuLockedClocksSetting> for GpuLockedClocksSetting
sourcefn eq(&self, other: &GpuLockedClocksSetting) -> bool
fn eq(&self, other: &GpuLockedClocksSetting) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &GpuLockedClocksSetting) -> bool
fn ne(&self, other: &GpuLockedClocksSetting) -> bool
This method tests for !=.
impl Eq for GpuLockedClocksSetting
impl StructuralEq for GpuLockedClocksSetting
impl StructuralPartialEq for GpuLockedClocksSetting
Auto Trait Implementations
impl RefUnwindSafe for GpuLockedClocksSetting
impl Send for GpuLockedClocksSetting
impl Sync for GpuLockedClocksSetting
impl Unpin for GpuLockedClocksSetting
impl UnwindSafe for GpuLockedClocksSetting
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