pub struct ThrottleReasons {
pub thermal: bool,
pub power_cap: bool,
pub hw_slowdown: bool,
pub sync_boost: bool,
pub other: bool,
}Expand description
Decoded throttle/clocks-event reasons. Decoding is tolerant: unknown future bits land in
other instead of failing (NVML renamed/extended these bits across versions).
Fields§
§thermal: bool§power_cap: bool§hw_slowdown: bool§sync_boost: bool§other: boolImplementations§
Trait Implementations§
Source§impl Clone for ThrottleReasons
impl Clone for ThrottleReasons
Source§fn clone(&self) -> ThrottleReasons
fn clone(&self) -> ThrottleReasons
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThrottleReasons
Source§impl Debug for ThrottleReasons
impl Debug for ThrottleReasons
Source§impl Default for ThrottleReasons
impl Default for ThrottleReasons
Source§fn default() -> ThrottleReasons
fn default() -> ThrottleReasons
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ThrottleReasons
impl<'de> Deserialize<'de> for ThrottleReasons
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThrottleReasons
Source§impl PartialEq for ThrottleReasons
impl PartialEq for ThrottleReasons
Source§impl Serialize for ThrottleReasons
impl Serialize for ThrottleReasons
impl StructuralPartialEq for ThrottleReasons
Auto Trait Implementations§
impl Freeze for ThrottleReasons
impl RefUnwindSafe for ThrottleReasons
impl Send for ThrottleReasons
impl Sync for ThrottleReasons
impl Unpin for ThrottleReasons
impl UnsafeUnpin for ThrottleReasons
impl UnwindSafe for ThrottleReasons
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