Trait OutputUpdate

Source
pub trait OutputUpdate {
    type Error;

    // Required method
    fn update(&mut self) -> Result<bool, Self::Error>;
}
Expand description

OutputUpdate Trait which provides an update() method

Required Associated Types§

Required Methods§

Source

fn update(&mut self) -> Result<bool, Self::Error>

Updates the output logic and potentially switches the LED state

§Returns
  • Error - if the hardware GPIO switch to on/off failed
  • true - if no further update repetitions are necessary to complete the the output
  • false - otherwise
§Notes
  • Needs to be called periodically.
  • Side Effect: calls the aggregated GPIO pin to switch on/off

Implementors§