Struct nvapi::PStateSettings
source · [−]pub struct PStateSettings {
pub id: PState,
pub editable: bool,
pub clocks: Vec<ClockEntry>,
pub base_voltages: Vec<BaseVoltage>,
}
Fields
id: PState
editable: bool
clocks: Vec<ClockEntry>
base_voltages: Vec<BaseVoltage>
Implementations
sourceimpl PStateSettings
impl PStateSettings
pub fn from_raw(
settings: &NV_GPU_PERF_PSTATES20_PSTATE,
num_clocks: usize,
num_base_voltages: usize
) -> Result<Self, ArgumentRangeError>
Trait Implementations
sourceimpl Clone for PStateSettings
impl Clone for PStateSettings
sourcefn clone(&self) -> PStateSettings
fn clone(&self) -> PStateSettings
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 PStateSettings
impl Debug for PStateSettings
sourceimpl Hash for PStateSettings
impl Hash for PStateSettings
sourceimpl Ord for PStateSettings
impl Ord for PStateSettings
sourceimpl PartialEq<PStateSettings> for PStateSettings
impl PartialEq<PStateSettings> for PStateSettings
sourcefn eq(&self, other: &PStateSettings) -> bool
fn eq(&self, other: &PStateSettings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PStateSettings) -> bool
fn ne(&self, other: &PStateSettings) -> bool
This method tests for !=
.
sourceimpl PartialOrd<PStateSettings> for PStateSettings
impl PartialOrd<PStateSettings> for PStateSettings
sourcefn partial_cmp(&self, other: &PStateSettings) -> Option<Ordering>
fn partial_cmp(&self, other: &PStateSettings) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for PStateSettings
impl StructuralEq for PStateSettings
impl StructuralPartialEq for PStateSettings
Auto Trait Implementations
impl RefUnwindSafe for PStateSettings
impl Send for PStateSettings
impl Sync for PStateSettings
impl Unpin for PStateSettings
impl UnwindSafe for PStateSettings
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