Struct thermal_config::StateConfig
source · pub struct StateConfig {
pub state: u32,
pub trip_points: Vec<TripPoint>,
}
Expand description
Defines the configuration for a single thermal state. Together with other StateConfig
instances, this makes up a client’s ClientConfig
.
Fields§
§state: u32
Thermal state number.
trip_points: Vec<TripPoint>
Vector of trip points that will activate this state.
Trait Implementations§
source§impl Debug for StateConfig
impl Debug for StateConfig
source§impl<'de> Deserialize<'de> for StateConfig
impl<'de> Deserialize<'de> for StateConfig
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 StateConfig
impl RefUnwindSafe for StateConfig
impl Send for StateConfig
impl Sync for StateConfig
impl Unpin for StateConfig
impl UnwindSafe for StateConfig
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