pub struct GroupControlMessage {
pub group_number: u8,
pub target_value: SetGroupSettingValue,
pub control_method: SetGroupControlMethod,
pub power: SetGroupPower,
}Expand description
The group control message. Send this message to the AT4 unit to change the state of a group.
Fields§
§group_number: u8Valid values are 0-15.
target_value: SetGroupSettingValueThe target that the AC should be aiming for; that is, a specific temperature or percentage value.
control_method: SetGroupControlMethodIf setting_value is not Maintain, Decrease, or Increase, this
will be ignored.
power: SetGroupPowerWhether or not the group is on/off, or in turbo.
Implementations§
Source§impl GroupControlMessage
impl GroupControlMessage
pub fn new( group_number: u8, target_value: SetGroupSettingValue, control_method: SetGroupControlMethod, power: SetGroupPower, ) -> Self
Trait Implementations§
Source§impl Clone for GroupControlMessage
impl Clone for GroupControlMessage
Source§fn clone(&self) -> GroupControlMessage
fn clone(&self) -> GroupControlMessage
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 moreSource§impl Debug for GroupControlMessage
impl Debug for GroupControlMessage
impl Copy for GroupControlMessage
Auto Trait Implementations§
impl Freeze for GroupControlMessage
impl RefUnwindSafe for GroupControlMessage
impl Send for GroupControlMessage
impl Sync for GroupControlMessage
impl Unpin for GroupControlMessage
impl UnsafeUnpin for GroupControlMessage
impl UnwindSafe for GroupControlMessage
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