pub struct ThermalZone {
pub name: String,
pub zone_type: String,
pub policy: String,
pub temp: i64,
pub mode: Option<bool>,
pub passive: Option<u64>,
}Expand description
ThermalZone contains info from files in /sys/class/thermal/thermal_zoneX.
Fields§
§name: String§zone_type: String§policy: String§temp: i64§mode: Option<bool>§passive: Option<u64>Trait Implementations§
Source§impl Clone for ThermalZone
impl Clone for ThermalZone
Source§fn clone(&self) -> ThermalZone
fn clone(&self) -> ThermalZone
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 ThermalZone
impl Debug for ThermalZone
Source§impl Default for ThermalZone
impl Default for ThermalZone
Source§fn default() -> ThermalZone
fn default() -> ThermalZone
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ThermalZone
impl RefUnwindSafe for ThermalZone
impl Send for ThermalZone
impl Sync for ThermalZone
impl Unpin for ThermalZone
impl UnwindSafe for ThermalZone
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