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§
source§impl GpuLockedClocksSetting
impl GpuLockedClocksSetting
sourcepub fn into_min_and_max_clocks(self) -> (u32, u32)
pub fn into_min_and_max_clocks(self) -> (u32, u32)
Returns (min_clock_mhz, max_clock_mhz)
.
Trait Implementations§
source§impl Clone for GpuLockedClocksSetting
impl Clone for GpuLockedClocksSetting
source§fn clone(&self) -> GpuLockedClocksSetting
fn clone(&self) -> GpuLockedClocksSetting
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 GpuLockedClocksSetting
impl Debug for GpuLockedClocksSetting
source§impl Hash for GpuLockedClocksSetting
impl Hash for GpuLockedClocksSetting
source§impl PartialEq for GpuLockedClocksSetting
impl PartialEq for GpuLockedClocksSetting
source§fn 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 ==
.impl Eq 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§
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