Struct async_debounce::Debouncer
source · pub struct Debouncer<T: Wait + InputPin> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: Wait + InputPin> Wait for Debouncer<T>
impl<T: Wait + InputPin> Wait for Debouncer<T>
source§async fn wait_for_high(&mut self) -> Result<(), T::Error>
async fn wait_for_high(&mut self) -> Result<(), T::Error>
Wait until the pin is high. If it is already high, return immediately. Read more
source§async fn wait_for_low(&mut self) -> Result<(), T::Error>
async fn wait_for_low(&mut self) -> Result<(), T::Error>
Wait until the pin is low. If it is already low, return immediately. Read more
source§async fn wait_for_rising_edge(&mut self) -> Result<(), T::Error>
async fn wait_for_rising_edge(&mut self) -> Result<(), T::Error>
Wait for the pin to undergo a transition from low to high. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for Debouncer<T>where
T: RefUnwindSafe,
impl<T> Send for Debouncer<T>where
T: Send,
impl<T> Sync for Debouncer<T>where
T: Sync,
impl<T> Unpin for Debouncer<T>where
T: Unpin,
impl<T> UnwindSafe for Debouncer<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more