pub struct DeviceConfig { /* private fields */ }Expand description
DeviceConfig is used to change the device configuration, like temperature set point
Implementations§
Source§impl DeviceConfig
impl DeviceConfig
Sourcepub fn set_mode(self, mode: DeviceMode) -> Self
pub fn set_mode(self, mode: DeviceMode) -> Self
set the mode for the set command
Sourcepub fn set_temperature(self, temperature: f64) -> Self
pub fn set_temperature(self, temperature: f64) -> Self
set the temperature set point for the set command
Sourcepub fn set_address(self, rf_address: u32) -> Self
pub fn set_address(self, rf_address: u32) -> Self
set the RF address for the set command
Sourcepub fn set_room_id(self, room_id: u8) -> Self
pub fn set_room_id(self, room_id: u8) -> Self
set the room id for the set command If the roomt id is 0, the configuration will be applied on all devices
Trait Implementations§
Source§impl Debug for DeviceConfig
impl Debug for DeviceConfig
Source§impl Default for DeviceConfig
impl Default for DeviceConfig
Source§fn default() -> DeviceConfig
fn default() -> DeviceConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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