Struct rust_gpiozero::input_devices::InputDevice [] [src]

pub struct InputDevice {
    pub pin: Pin,
}

Represents a generic GPIO input device.

Fields

Methods

impl InputDevice
[src]

[src]

Creates a new input device with pin number pin

Trait Implementations

impl Debug for InputDevice
[src]

[src]

Formats the value using the given formatter. Read more

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

impl Sync for InputDevice