pub struct BackOff { /* private fields */ }Expand description
Waiting hint. Provides common exponential spin logic. When spin count exceeds spin limit it switches to yield when “std” feature is enabled. When spin count exceeds yield limit it advises caller to block thread.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackOff
impl RefUnwindSafe for BackOff
impl Send for BackOff
impl Sync for BackOff
impl Unpin for BackOff
impl UnwindSafe for BackOff
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