Trait switch_hal::OutputSwitch
source · pub trait OutputSwitch {
type Error;
// Required methods
fn on(&mut self) -> Result<(), Self::Error>;
fn off(&mut self) -> Result<(), Self::Error>;
}
Expand description
Represents an output switch, such as a LED “switch” or transitor