Struct follow_heating::brain::modes::heating_mode::TargetTemperature
source · pub struct TargetTemperature {
sensor: Sensor,
temp: f32,
}
Fields§
§sensor: Sensor
§temp: f32
Implementations§
source§impl TargetTemperature
impl TargetTemperature
pub const fn new(sensor: Sensor, temp: f32) -> Self
pub fn get_target_sensor(&self) -> &Sensor
pub fn get_target_temp(&self) -> f32
Trait Implementations§
source§impl Clone for TargetTemperature
impl Clone for TargetTemperature
source§fn clone(&self) -> TargetTemperature
fn clone(&self) -> TargetTemperature
Returns a copy 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 TargetTemperature
impl Debug for TargetTemperature
source§impl<'de> Deserialize<'de> for TargetTemperature
impl<'de> Deserialize<'de> for TargetTemperature
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
source§impl Display for TargetTemperature
impl Display for TargetTemperature
source§impl PartialEq for TargetTemperature
impl PartialEq for TargetTemperature
source§fn eq(&self, other: &TargetTemperature) -> bool
fn eq(&self, other: &TargetTemperature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetTemperature
Auto Trait Implementations§
impl RefUnwindSafe for TargetTemperature
impl Send for TargetTemperature
impl Sync for TargetTemperature
impl Unpin for TargetTemperature
impl UnwindSafe for TargetTemperature
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