Struct rust_gpiozero::devices::GPIODevice [] [src]

pub struct GPIODevice {
    pub pin: Pin,
}

Represents a generic GPIO device and provides the services common to all single-pin GPIO devices

Fields

Methods

impl GPIODevice
[src]

[src]

Trait Implementations

impl Debug for GPIODevice
[src]

[src]

Formats the value using the given formatter. Read more

impl Device for GPIODevice
[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 GPIODevice

impl Sync for GPIODevice