Skip to main content

TemperatureClient

Trait TemperatureClient 

Source
pub trait TemperatureClient {
    // Required method
    fn callback(&self, value: Result<i32, ErrorCode>);
}
Expand description

Client for receiving temperature readings.

Required Methods§

Source

fn callback(&self, value: Result<i32, ErrorCode>)

Called when a temperature reading has completed.

  • value: the most recently read temperature in hundredths of degrees centigrade (centiCelsius), or Err on failure.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§