Struct rust_gpiozero::output_devices::OutputDevice [] [src]

pub struct OutputDevice {
    pub pin: Pin,
}

Represents a generic GPIO output device.

Fields

Methods

impl OutputDevice
[src]

[src]

Trait Implementations

impl Debug for OutputDevice
[src]

[src]

Formats the value using the given formatter. Read more

impl OutputDeviceTrait for OutputDevice
[src]

[src]

Get the pin

[src]

Turns the device on.

[src]

Turns the device off.

[src]

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

impl Device for OutputDevice
[src]

[src]

Get the pin

[src]

Returns a value representing the device's state.

[src]

Shut down the device and release all associated resources.

[src]

Returns True if the device is currently active and Falseotherwise.

Auto Trait Implementations

impl Send for OutputDevice

impl Sync for OutputDevice