pub struct NoBackoff;Expand description
No backoff.
Retries immediately with the value returned by the failed CAS.
Trait Implementations§
Source§impl BackoffStrategy for NoBackoff
impl BackoffStrategy for NoBackoff
Source§fn backoff(&mut self) -> RetryStrategy
fn backoff(&mut self) -> RetryStrategy
Performs backoff and returns how the CAS should be retried. Read more
Source§fn will_reload(&self) -> bool
fn will_reload(&self) -> bool
Source§fn backoff_reload<T: PartialEq, F: FnMut() -> T>(
&mut self,
current: T,
reload: F,
) -> T
fn backoff_reload<T: PartialEq, F: FnMut() -> T>( &mut self, current: T, reload: F, ) -> T
Performs backoff after a failed CAS and reloads the atomic value according to the returned
RetryStrategy. Read moreSource§fn backoff_until<C: BackoffUntilCondition, F: FnMut() -> C>(
&mut self,
f: F,
) -> C::Result
fn backoff_until<C: BackoffUntilCondition, F: FnMut() -> C>( &mut self, f: F, ) -> C::Result
Loops until a condition is fulfilled, performing backoff at each iteration.
Auto Trait Implementations§
impl Freeze for NoBackoff
impl RefUnwindSafe for NoBackoff
impl Send for NoBackoff
impl Sync for NoBackoff
impl Unpin for NoBackoff
impl UnsafeUnpin for NoBackoff
impl UnwindSafe for NoBackoff
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