pub struct Debouncer<T> { /* 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> Freeze for Debouncer<T>where
T: Freeze,
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