pub struct Backoff<'a> { /* private fields */ }
Expand description
An object to yield execution of an async task while in a spin loop.
This is useful when waiting for some condition (such as a device register to change states) that can only be polled and does not have an interrupt-based notification.
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Backoff<'a>
impl<'a> !RefUnwindSafe for Backoff<'a>
impl<'a> Send for Backoff<'a>
impl<'a> Sync for Backoff<'a>
impl<'a> Unpin for Backoff<'a>
impl<'a> !UnwindSafe for Backoff<'a>
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