Struct Communicator

Source
pub struct Communicator { /* private fields */ }

Implementations§

Source§

impl Communicator

Source

pub fn new( conn: Connection<'static, 'static>, cryptor: Cryptor, host: String, from: String, to: String, ) -> Result<Communicator>

Source

pub fn is_ready(&self) -> bool

Source

pub fn send_raw_with_reply( &self, command: RawCommand, ) -> Result<RawCommandResult>

Source

pub fn send_raw(&self, command: RawCommand) -> Result<()>

Source

pub fn send<RE: DeserializeOwned>(&self, command: Command<RE>) -> Result<RE>

Source

pub fn ping(&self) -> Result<RawCommandResult>

Source

pub fn disconnect(self)

Source

pub fn system_pressure(&self) -> Result<f64>

Source

pub fn display_code(&self) -> Result<String>

Source

pub fn cause_code(&self) -> Result<f64>

Source

pub fn latitude(&self) -> Result<String>

Source

pub fn longitude(&self) -> Result<String>

Source

pub fn outdoor_temp(&self) -> Result<f64>

Source

pub fn supply_temp(&self) -> Result<f64>

Source

pub fn user_mode(&self) -> Result<String>

Source

pub fn status(&self) -> Result<UiUpdate>

Source

pub fn gas_usage_entry_count(&self) -> Result<usize>

Source

pub fn gas_usage_page_count(&self) -> Result<usize>

Source

pub fn gas_usage_page(&self, page_num: usize) -> Result<Vec<Recording>>

Source

pub fn set_manual_temp_override(&self, temp: f64) -> Result<()>

Source

pub fn set_temp_room_manual(&self, temp: f64) -> Result<()>

Source

pub fn enable_manual_temp_override(&self, enable: bool) -> Result<()>

Trait Implementations§

Source§

impl Debug for Communicator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Communicator

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.