pub trait MoistureClient {
// Required method
fn callback(&self, value: Result<usize, ErrorCode>);
}
Expand description
Client for receiving moisture readings.
Required Methods§
Sourcefn callback(&self, value: Result<usize, ErrorCode>)
fn callback(&self, value: Result<usize, ErrorCode>)
Called when a moisture reading has completed.
value
: the most recently read moisture in hundredths of percent, 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 this data type isn’t supported.