pub trait Output {
// Required methods
fn set(&self);
fn clear(&self);
fn toggle(&self) -> bool;
// Provided method
fn write_activation(&self, state: ActivationState, mode: ActivationMode) { ... }
}Required Methods§
Sourcefn set(&self)
fn set(&self)
Set the GPIO pin high. If the pin is not an output or input/output, this call is ignored.
Provided Methods§
Sourcefn write_activation(&self, state: ActivationState, mode: ActivationMode)
fn write_activation(&self, state: ActivationState, mode: ActivationMode)
Activate or deactivate 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".