pub struct HardwareStatus {
pub battery_temperatures: Option<Vec<f32>>,
pub skin_temperatures: Option<Vec<f32>>,
pub gpu_temperatures: Option<Vec<f32>>,
pub fan_speeds: Option<Vec<f32>>,
pub cpu_temperatures: Option<Vec<f32>>,
pub create_time: Option<String>,
pub cpu_usages: 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.
skin_temperatures: Option<Vec<f32>>Current device skin temperatures in Celsius.
gpu_temperatures: Option<Vec<f32>>Current GPU temperatures in Celsius for each GPU on the device.
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.
cpu_temperatures: Option<Vec<f32>>Current CPU temperatures in Celsius for each CPU on the device.
create_time: Option<String>The time the measurements were taken.
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.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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