pub struct LockOptions {
pub poll_interval: Duration,
}Expand description
How a process waits for the lock.
Fields§
§poll_interval: DurationHow long a waiting process sleeps between two attempts to take the lock.
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
impl Copy for LockOptions
Source§impl Debug for LockOptions
impl Debug for LockOptions
Source§impl Default for LockOptions
impl Default for LockOptions
impl Eq for LockOptions
Source§impl PartialEq for LockOptions
impl PartialEq for LockOptions
impl StructuralPartialEq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.