pub struct TimeOutWait {
pub timeout: Duration,
}Expand description
timeout wait
generally used when there are no interrupt pins
Fields§
§timeout: DurationImplementations§
Trait Implementations§
Source§impl Default for TimeOutWait
support default 100 millis
impl Default for TimeOutWait
support default 100 millis
Source§impl ErrorType for TimeOutWait
custom error type
impl ErrorType for TimeOutWait
custom error type
Source§type Error = TimeoutWaitError
type Error = TimeoutWaitError
Error type
Source§impl Wait for TimeOutWait
support wait
impl Wait for TimeOutWait
support wait
Source§async fn wait_for_high(&mut self) -> Result<(), Self::Error>
async fn wait_for_high(&mut self) -> Result<(), Self::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<(), Self::Error>
async fn wait_for_low(&mut self) -> Result<(), Self::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<(), Self::Error>
async fn wait_for_rising_edge(&mut self) -> Result<(), Self::Error>
Wait for the pin to undergo a transition from low to high. Read more
Auto Trait Implementations§
impl Freeze for TimeOutWait
impl RefUnwindSafe for TimeOutWait
impl Send for TimeOutWait
impl Sync for TimeOutWait
impl Unpin for TimeOutWait
impl UnwindSafe for TimeOutWait
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