Skip to main content

InputPin

Trait InputPin 

pub trait InputPin: ErrorType {
    // Required methods
    fn is_high(&mut self) -> Result<bool, Self::Error>;
    fn is_low(&mut self) -> Result<bool, Self::Error>;
}
Expand description

Single digital input pin.

Required Methods§

fn is_high(&mut self) -> Result<bool, Self::Error>

Is the input pin high?

fn is_low(&mut self) -> Result<bool, Self::Error>

Is the input pin low?

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl<T> InputPin for &mut T
where T: InputPin + ?Sized,

§

fn is_high(&mut self) -> Result<bool, <&mut T as ErrorType>::Error>

§

fn is_low(&mut self) -> Result<bool, <&mut T as ErrorType>::Error>

Implementors§