pub struct HardwareStatus {
pub battery_temperatures: Option<Vec<f32>>,
pub cpu_temperatures: Option<Vec<f32>>,
pub cpu_usages: Option<Vec<f32>>,
pub create_time: Option<DateTime<Utc>>,
pub fan_speeds: Option<Vec<f32>>,
pub gpu_temperatures: Option<Vec<f32>>,
pub skin_temperatures: Option<Vec<f32>>,
}
Expand description
Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.
This type is not used in any activity, and only used as part of another schema.
Fields§
§battery_temperatures: Option<Vec<f32>>
Current battery temperatures in Celsius for each battery on the device.
cpu_temperatures: Option<Vec<f32>>
Current CPU temperatures in Celsius for each CPU on the device.
cpu_usages: Option<Vec<f32>>
CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system.
create_time: Option<DateTime<Utc>>
The time the measurements were taken.
fan_speeds: Option<Vec<f32>>
Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system.
gpu_temperatures: Option<Vec<f32>>
Current GPU temperatures in Celsius for each GPU on the device.
skin_temperatures: Option<Vec<f32>>
Current device skin temperatures in Celsius.
Trait Implementations§
Source§impl Clone for HardwareStatus
impl Clone for HardwareStatus
Source§fn clone(&self) -> HardwareStatus
fn clone(&self) -> HardwareStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HardwareStatus
impl Debug for HardwareStatus
Source§impl Default for HardwareStatus
impl Default for HardwareStatus
Source§fn default() -> HardwareStatus
fn default() -> HardwareStatus
Source§impl<'de> Deserialize<'de> for HardwareStatus
impl<'de> Deserialize<'de> for HardwareStatus
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>,
Source§impl Serialize for HardwareStatus
impl Serialize for HardwareStatus
impl Part for HardwareStatus
Auto Trait Implementations§
impl Freeze for HardwareStatus
impl RefUnwindSafe for HardwareStatus
impl Send for HardwareStatus
impl Sync for HardwareStatus
impl Unpin for HardwareStatus
impl UnwindSafe for HardwareStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more