Trait gpio::GpioIn
[−]
[src]
pub trait GpioIn { type Error; fn read_value(&mut self) -> Result<GpioValue, Self::Error>; }
Supports reading GPIOValue
s
Associated Types
type Error
Errors that can occur during initialization of or reading from GPIO
Required Methods
fn read_value(&mut self) -> Result<GpioValue, Self::Error>
Perform a single reading of a GPIO port
Implementors
impl GpioIn for SysFsGpioInput type Error = Error;
impl<V, F> GpioIn for DummyGpioIn<F> where
V: Into<GpioValue>,
F: Fn() -> V, type Error = ();