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
fn calling_for_heat(&self) -> Result<bool, Error>
checks if we are calling for heat
fn call_for_heat(&self) -> Result<(), Error>
calls for heat
fn stop_call_for_heat(&self) -> Result<(), Error>
stops call for heat
fn calling_for_cool(&self) -> Result<bool, Error>
checks if we are calling for cool
fn call_for_cool(&self) -> Result<(), Error>
calls for cool
fn stop_call_for_cool(&self) -> Result<(), Error>
stops call for cool
fn calling_for_fan(&self) -> Result<bool, Error>
checks if we are calling for fan
fn call_for_fan(&self) -> Result<(), Error>
calls for fan
fn stop_call_for_fan(&self) -> Result<(), Error>
stops call for fan
fn get_seconds(&self) -> Result<u64, Error>
gets seconds since system start