pub trait Gpio {
// Required methods
fn set_mode_output(&mut self, pin: Pin);
fn set_mode_input(&mut self, pin: Pin);
fn write(&mut self, pin: Pin, high: bool) -> Result<(), String>;
fn read(&self, pin: Pin) -> Result<bool, String>;
}Required Methods§
fn set_mode_output(&mut self, pin: Pin)
fn set_mode_input(&mut self, pin: Pin)
fn write(&mut self, pin: Pin, high: bool) -> Result<(), String>
fn read(&self, pin: Pin) -> Result<bool, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".