Trait rust_gpiozero::output_devices::OutputDeviceTrait [] [src]

pub trait OutputDeviceTrait {
    fn pin(&self) -> Pin;

    fn on(&mut self) { ... }
fn off(&mut self) { ... }
fn toggle(&mut self) { ... } }

Required Methods

Get the pin

Provided Methods

Turns the device on.

Turns the device off.

Reverse the state of the device. If it's on, turn it off; if it's off, turn it on.

Implementors