Trait thermostat::ThermostatInterface[][src]

pub trait ThermostatInterface {
    fn calling_for_heat(&self) -> Result<bool, Error>;
fn call_for_heat(&self) -> Result<(), Error>;
fn stop_call_for_heat(&self) -> Result<(), Error>;
fn calling_for_cool(&self) -> Result<bool, Error>;
fn call_for_cool(&self) -> Result<(), Error>;
fn stop_call_for_cool(&self) -> Result<(), Error>;
fn calling_for_fan(&self) -> Result<bool, Error>;
fn call_for_fan(&self) -> Result<(), Error>;
fn stop_call_for_fan(&self) -> Result<(), Error>;
fn get_seconds(&self) -> Result<u64, Error>; }

Wrapper for physical interface controls

Required Methods

checks if we are calling for heat

calls for heat

stops call for heat

checks if we are calling for cool

calls for cool

stops call for cool

checks if we are calling for fan

calls for fan

stops call for fan

gets seconds since system start

Implementors