Struct at4_protocol::messaging::ACControlMessage [−][src]
pub struct ACControlMessage { pub unit_number: u8, pub fan_speed: Option<ACFanSpeed>, pub mode: SetACMode, pub power: SetACPowerState, pub setpoint_temp: SetACSetpoint, }
Expand description
The AC control message. Send this message to the AT4 unit to change the state of an AC unit.
Fields
unit_number: u8
The number of the AC unit (0-3)
.
fan_speed: Option<ACFanSpeed>
The fan speed of the AC unit.
If None
, the fan speed will be maintained.
mode: SetACMode
The operating mode of the AC unit. (e.g. auto
, cool
, dry
, fan
)
power: SetACPowerState
The change in power state of the AC unit.
setpoint_temp: SetACSetpoint
The temperature of the air that should be generated by the AC unit.
Implementations
pub fn new(
unit_number: u8,
power: SetACPowerState,
mode: SetACMode,
fan_speed: Option<ACFanSpeed>,
setpoint_temp: SetACSetpoint
) -> Self
pub fn new(
unit_number: u8,
power: SetACPowerState,
mode: SetACMode,
fan_speed: Option<ACFanSpeed>,
setpoint_temp: SetACSetpoint
) -> Self
None
fields will maintain their current values.
Create an ACControlMessage
that will turn off the specified AC unit.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ACControlMessage
impl Send for ACControlMessage
impl Sync for ACControlMessage
impl Unpin for ACControlMessage
impl UnwindSafe for ACControlMessage
Blanket Implementations
Mutably borrows from an owned value. Read more