pub struct Communicator { /* private fields */ }
Implementations§
Source§impl Communicator
impl Communicator
pub fn new( conn: Connection<'static, 'static>, cryptor: Cryptor, host: String, from: String, to: String, ) -> Result<Communicator>
pub fn is_ready(&self) -> bool
pub fn send_raw_with_reply( &self, command: RawCommand, ) -> Result<RawCommandResult>
pub fn send_raw(&self, command: RawCommand) -> Result<()>
pub fn send<RE: DeserializeOwned>(&self, command: Command<RE>) -> Result<RE>
pub fn ping(&self) -> Result<RawCommandResult>
pub fn disconnect(self)
pub fn system_pressure(&self) -> Result<f64>
pub fn display_code(&self) -> Result<String>
pub fn cause_code(&self) -> Result<f64>
pub fn latitude(&self) -> Result<String>
pub fn longitude(&self) -> Result<String>
pub fn outdoor_temp(&self) -> Result<f64>
pub fn supply_temp(&self) -> Result<f64>
pub fn user_mode(&self) -> Result<String>
pub fn status(&self) -> Result<UiUpdate>
pub fn gas_usage_entry_count(&self) -> Result<usize>
pub fn gas_usage_page_count(&self) -> Result<usize>
pub fn gas_usage_page(&self, page_num: usize) -> Result<Vec<Recording>>
pub fn set_manual_temp_override(&self, temp: f64) -> Result<()>
pub fn set_temp_room_manual(&self, temp: f64) -> Result<()>
pub fn enable_manual_temp_override(&self, enable: bool) -> Result<()>
Trait Implementations§
Source§impl Debug for Communicator
impl Debug for Communicator
Auto Trait Implementations§
impl Freeze for Communicator
impl !RefUnwindSafe for Communicator
impl Send for Communicator
impl !Sync for Communicator
impl Unpin for Communicator
impl !UnwindSafe for Communicator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more