pub struct ThrottleStatus {
pub under_voltage: bool,
pub frequency_capped: bool,
pub throttled: bool,
pub soft_temperature_limit: bool,
}Fields§
§under_voltage: bool§frequency_capped: bool§throttled: bool§soft_temperature_limit: boolImplementations§
Source§impl ThrottleStatus
impl ThrottleStatus
pub const BIT_UNDER_VOLTAGE: u32 = 1u32
pub const BIT_FREQUENCT_CAPPED: u32 = 2u32
pub const BIT_THROTTLED: u32 = 4u32
pub const BIT_SOFT_TEMPERATURE_LIMIT: u32 = 8u32
pub const SHIFT_OCCURED: usize = 16usize
Source§impl ThrottleStatus
impl ThrottleStatus
pub fn from_current(value: u32) -> Self
pub fn from_occured(value: u32) -> Self
pub fn to_current(self) -> u32
pub fn to_occured(self) -> u32
Trait Implementations§
Source§impl Clone for ThrottleStatus
impl Clone for ThrottleStatus
Source§fn clone(&self) -> ThrottleStatus
fn clone(&self) -> ThrottleStatus
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 ThrottleStatus
impl Debug for ThrottleStatus
Source§impl Default for ThrottleStatus
impl Default for ThrottleStatus
Source§fn default() -> ThrottleStatus
fn default() -> ThrottleStatus
Returns the “default value” for a type. Read more
impl Copy for ThrottleStatus
Auto Trait Implementations§
impl Freeze for ThrottleStatus
impl RefUnwindSafe for ThrottleStatus
impl Send for ThrottleStatus
impl Sync for ThrottleStatus
impl Unpin for ThrottleStatus
impl UnwindSafe for ThrottleStatus
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