pub struct LockOptions {
pub ttl: Duration,
pub wait_timeout: Duration,
}Expand description
锁选项
Fields§
§ttl: Duration锁的生存时间
wait_timeout: Duration等待获取锁的超时时间
Implementations§
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