pub struct ProcessingEnergy {
pub cores: u32,
pub utilization: f64,
pub feeling: EnergyFeeling,
pub load_average: [f64; 3],
pub burst_available: bool,
pub throttled: bool,
pub credits: Option<CpuCredits>,
pub temperature: Option<f64>,
}Expand description
CPU as processing energy.
Fields§
§cores: u32§utilization: f64§feeling: EnergyFeeling§load_average: [f64; 3]§burst_available: bool§throttled: bool§credits: Option<CpuCredits>§temperature: Option<f64>Trait Implementations§
Source§impl Clone for ProcessingEnergy
impl Clone for ProcessingEnergy
Source§fn clone(&self) -> ProcessingEnergy
fn clone(&self) -> ProcessingEnergy
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 ProcessingEnergy
impl Debug for ProcessingEnergy
Source§impl<'de> Deserialize<'de> for ProcessingEnergy
impl<'de> Deserialize<'de> for ProcessingEnergy
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
Auto Trait Implementations§
impl Freeze for ProcessingEnergy
impl RefUnwindSafe for ProcessingEnergy
impl Send for ProcessingEnergy
impl Sync for ProcessingEnergy
impl Unpin for ProcessingEnergy
impl UnsafeUnpin for ProcessingEnergy
impl UnwindSafe for ProcessingEnergy
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