pub trait ToggleableOutputSwitch {
type Error;
// Required method
fn toggle(&mut self) -> Result<(), Self::Error>;
}Expand description
Toggles the switch from it’s current state to it’s opposite state.
§Notes
This is only available if the underlying hal has implemented ToggleableOutputPin
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".