pub struct GpioDevice { /* fields omitted */ }
Represents a generic GPIO device and provides the services common to all single-pin GPIO devices
Returns a GpioDevice with the pin number given
pin
- The GPIO pin which the device is attached to
Returns a value representing the device’s state.
Returns True
if the device is currently active and False
otherwise.
Shut down the device and release all associated resources.
The Pin
that the device is connected to.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.