pub struct LockOptions {
pub ttl_ms: u64,
pub retry_count: u32,
pub retry_delay_ms: u64,
}Expand description
Options to attempt to acquire a distributed lock.
Fields§
§ttl_ms: u64Time-to-live for the lock in milliseconds.
retry_count: u32Number of attempts to acquire the lock.
retry_delay_ms: u64Delay between retry attempts in milliseconds.
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
Source§fn clone(&self) -> LockOptions
fn clone(&self) -> LockOptions
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 LockOptions
impl Debug for LockOptions
Auto Trait Implementations§
impl Freeze for LockOptions
impl RefUnwindSafe for LockOptions
impl Send for LockOptions
impl Sync for LockOptions
impl Unpin for LockOptions
impl UnsafeUnpin for LockOptions
impl UnwindSafe for LockOptions
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