pub enum ContentionStrategy {
FailFast,
WaitWithTimeout(Duration),
RetryWithBackoff {
initial_delay: Duration,
max_retries: u32,
max_delay: Duration,
},
}Expand description
Strategy for handling lock contention
Variants§
FailFast
Fail immediately if lock is unavailable
WaitWithTimeout(Duration)
Wait up to the specified duration for the lock
RetryWithBackoff
Retry with exponential backoff
Trait Implementations§
Source§impl Clone for ContentionStrategy
impl Clone for ContentionStrategy
Source§fn clone(&self) -> ContentionStrategy
fn clone(&self) -> ContentionStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentionStrategy
impl Debug for ContentionStrategy
Auto Trait Implementations§
impl Freeze for ContentionStrategy
impl RefUnwindSafe for ContentionStrategy
impl Send for ContentionStrategy
impl Sync for ContentionStrategy
impl Unpin for ContentionStrategy
impl UnsafeUnpin for ContentionStrategy
impl UnwindSafe for ContentionStrategy
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