pub trait Input {
// Required method
fn read(&self) -> bool;
// Provided method
fn read_activation(&self, mode: ActivationMode) -> ActivationState { ... }
}Required Methods§
Provided Methods§
Sourcefn read_activation(&self, mode: ActivationMode) -> ActivationState
fn read_activation(&self, mode: ActivationMode) -> ActivationState
Get the current state of a GPIO pin, for a given activation mode.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".