Trait RainFallClient

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

Client for receiving moisture readings.

Required Methods§

Source

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

Called when a moisture reading has completed.

  • value: the number of um of rain in the time period specified, or Err on failure.

This function might return the following errors:

  • BUSY: Indicates that the hardware is busy with an existing operation or initialisation/calibration.
  • NOSUPPORT: Indicates that the value of hours is not supported.

Implementors§

impl<'a, H: RainFallDriver<'a>> RainFallClient for RainFallSensor<'a, H>