Struct amdgpu_sysfs::gpu_handle::PowerLevels
source · Expand description
List of power levels.
Fields§
§levels: Vec<T>List of possible levels.
active: Option<usize>The currently active level.
Implementations§
source§impl<T> PowerLevels<T>
impl<T> PowerLevels<T>
sourcepub fn active_level(&self) -> Option<&T>
pub fn active_level(&self) -> Option<&T>
Gets the currently active level value.
Trait Implementations§
source§impl<T: Clone> Clone for PowerLevels<T>
impl<T: Clone> Clone for PowerLevels<T>
source§fn clone(&self) -> PowerLevels<T>
fn clone(&self) -> PowerLevels<T>
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<T: Debug> Debug for PowerLevels<T>
impl<T: Debug> Debug for PowerLevels<T>
source§impl<T: PartialEq> PartialEq<PowerLevels<T>> for PowerLevels<T>
impl<T: PartialEq> PartialEq<PowerLevels<T>> for PowerLevels<T>
source§fn eq(&self, other: &PowerLevels<T>) -> bool
fn eq(&self, other: &PowerLevels<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.