pub trait PinWrapper { // Required method fn is_high(&mut self) -> bool; // Provided method fn is_low(&mut self) -> bool { ... } }
An abstraction over different switching APIs.
Is source on?
Is source off?