pub struct ThermalInfo {
pub state: u32,
pub passive_temp_celsius: f32,
pub critical_temp_celsius: f32,
pub max_trip_count: u32,
pub active_trip: [f32; 16],
}Expand description
Temperature units are degrees Celsius.
Fields§
§state: u32State is a bitmask of THERMAL_STATE_* values.
passive_temp_celsius: f32The sensor temperature at which the system should activate passive cooling policy.
critical_temp_celsius: f32The sensor temperature at which the system should perform critical shutdown.
max_trip_count: u32The number of trip points supported.
active_trip: [f32; 16]The currently active trip point.
Trait Implementations§
Source§impl Clone for ThermalInfo
impl Clone for ThermalInfo
Source§fn clone(&self) -> ThermalInfo
fn clone(&self) -> ThermalInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThermalInfo
Source§impl Debug for ThermalInfo
impl Debug for ThermalInfo
Source§impl<D: ResourceDialect> Decode<ThermalInfo, D> for ThermalInfo
impl<D: ResourceDialect> Decode<ThermalInfo, D> for ThermalInfo
Source§impl<D: ResourceDialect> Encode<ThermalInfo, D> for &ThermalInfo
impl<D: ResourceDialect> Encode<ThermalInfo, D> for &ThermalInfo
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<f32, D>, T2: Encode<f32, D>, T3: Encode<u32, D>, T4: Encode<Array<f32, 16>, D>> Encode<ThermalInfo, D> for (T0, T1, T2, T3, T4)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<f32, D>, T2: Encode<f32, D>, T3: Encode<u32, D>, T4: Encode<Array<f32, 16>, D>> Encode<ThermalInfo, D> for (T0, T1, T2, T3, T4)
Source§impl PartialEq for ThermalInfo
impl PartialEq for ThermalInfo
Source§fn eq(&self, other: &ThermalInfo) -> bool
fn eq(&self, other: &ThermalInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ThermalInfo
impl PartialOrd for ThermalInfo
impl Persistable for ThermalInfo
impl StructuralPartialEq for ThermalInfo
Source§impl TypeMarker for ThermalInfo
impl TypeMarker for ThermalInfo
Source§type Owned = ThermalInfo
type Owned = ThermalInfo
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for ThermalInfo
impl ValueTypeMarker for ThermalInfo
Source§type Borrowed<'a> = &'a ThermalInfo
type Borrowed<'a> = &'a ThermalInfo
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreAuto Trait Implementations§
impl Freeze for ThermalInfo
impl RefUnwindSafe for ThermalInfo
impl Send for ThermalInfo
impl Sync for ThermalInfo
impl Unpin for ThermalInfo
impl UnsafeUnpin for ThermalInfo
impl UnwindSafe for ThermalInfo
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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