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§
Source§impl 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§
Source§impl Clone for PStateSettings
impl Clone for PStateSettings
Source§fn clone(&self) -> PStateSettings
fn clone(&self) -> PStateSettings
Returns a duplicate 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 PStateSettings
impl Debug for PStateSettings
Source§impl Hash for PStateSettings
impl Hash for PStateSettings
Source§impl Ord for PStateSettings
impl Ord for PStateSettings
Source§fn cmp(&self, other: &PStateSettings) -> Ordering
fn cmp(&self, other: &PStateSettings) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PStateSettings
impl PartialEq for PStateSettings
Source§impl PartialOrd for PStateSettings
impl PartialOrd for PStateSettings
impl Eq for PStateSettings
impl StructuralPartialEq for PStateSettings
Auto Trait Implementations§
impl Freeze for PStateSettings
impl RefUnwindSafe for PStateSettings
impl Send for PStateSettings
impl Sync for PStateSettings
impl Unpin for PStateSettings
impl UnwindSafe for PStateSettings
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