fn reset(&mut self) -> Result<(),Box<error::Error>> {
    self.control_channel.run_in_mode(DisplayMode::Reset, &mut move || {
      thread::sleep(time::Duration::from_millis(10));
      Ok(())
    })?;

    // Allow the display to restart for 500ms while holding the interface implicitly idle.
    thread::sleep(time::Duration::from_millis(500));
    Ok(())
  }
/// Resets the display and waits for it to restart. Takes approximately ~550ms.
///
/// # Returns
/// An error from the control channel if the display could not enter Reset mode.
Resets the display and waits for it to restart. Takes approximately ~550ms.
Resets the display and waits for it to restart . Takes approximately ~550ms .
fn reset(&mut self) -> Result<(),Box<error::Error>> {
    self.control_channel.run_in_mode(DisplayMode::Reset, &mut move || {
      thread::sleep(time::Duration::from_millis(10));
      Ok(())
    })?;
    // Allow the display to restart for 500ms while holding the interface implicitly idle.
    thread::sleep(time::Duration::from_millis(500));
    Ok(())
  }
fn reset ( & mut self ) -> Result < ( ) , Box < error :: Error > > { self . control_channel . run_in_mode ( DisplayMode :: Reset , & mut move | | { thread :: sleep ( time :: Duration :: from_millis ( 10 ) ) ; Ok ( ( ) ) } ) ? ; // Allow the display to restart for 500ms while holding the interface implicitly idle. thread :: sleep ( time :: Duration :: from_millis ( 500 ) ) ; Ok ( ( ) ) }
Resets the display and waits for it to restart.
Resets the display and waits for it to restart .
&mut self
An error from the control channel if the display could not enter Reset mode.
An error from the control channel if the display could not enter Reset mode .
&mut self