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

None fields will maintain their current values.

Create an ACControlMessage that will turn off the specified AC unit.

Convert the ACControlMessage into the raw message bytes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.