pub fn ensure_ready(&self) -> Result<()> {
    if self.is_ready()? {
      Ok(())
    } else {
      return Err(MetrifulError::NotReady)
    }
  }
/// Ensures the device is currently ready.
Ensures the device is currently ready.
Ensures the device is currently ready .
pub fn ensure_ready(&self) -> Result<()> {
    if self.is_ready()? {
      Ok(())
    } else {
      return Err(MetrifulError::NotReady)
    }
  }
pub fn ensure_ready ( & self ) -> Result < ( ) > { if self . is_ready ( ) ? { Ok ( ( ) ) } else { return Err ( MetrifulError :: NotReady ) } }
Ensures the device is currently ready.
Ensures the device is currently ready .
&self
&self