pub struct Message { /* private fields */ }Implementations§
Source§impl Message
impl Message
pub fn new() -> Self
pub fn raw(&self) -> &[u8; 8]
pub fn encode(&self) -> impl Iterator<Item = Code> + '_
pub fn decode(codes: &[Code; 70]) -> Result<Self, DecodeError>
pub fn mode(&self) -> Result<Mode, DecodeError>
pub fn set_mode(&mut self, mode: Mode)
pub fn is_on(&self) -> bool
pub fn set_on(&mut self, on: bool)
pub fn fan(&self) -> Fan
pub fn set_fan(&mut self, fan: Fan)
pub fn swing(&self) -> bool
pub fn set_swing(&mut self, swing: bool)
pub fn sleep(&self) -> bool
pub fn set_sleep(&mut self, sleep: bool)
pub fn temperature(&self) -> Result<Temperature, DecodeError>
pub fn set_temperature(&mut self, temp: Temperature)
pub fn timer(&self) -> Result<TimerSetting, DecodeError>
pub fn set_timer(&mut self, setting: &TimerSetting)
pub fn turbo(&self) -> bool
pub fn set_turbo(&mut self, turbo: bool)
pub fn light(&self) -> bool
pub fn set_light(&mut self, light: bool)
pub fn health(&self) -> bool
pub fn set_health(&mut self, health: bool)
pub fn dry(&self) -> bool
pub fn set_dry(&mut self, dry: bool)
pub fn ventilate(&self) -> bool
pub fn set_ventilateo(&mut self, ventilate: bool)
pub fn v_swing(&self) -> SwingMode
pub fn set_v_swing(&mut self, mode: SwingMode)
pub fn h_swing(&self) -> SwingMode
pub fn set_h_swing(&mut self, mode: SwingMode)
pub fn temperature_display(&self) -> TemperatureDisplay
pub fn set_temperature_display(&mut self, temp_display: TemperatureDisplay)
pub fn i_feel(&self) -> bool
pub fn set_i_feel(&mut self, i_feel: bool)
pub fn wifi(&self) -> bool
pub fn set_wifi(&mut self, wifi: bool)
pub fn econo(&self) -> bool
pub fn set_econo(&mut self, econo: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)