pub struct LockOptions {
pub timeout: Duration,
pub poll: Duration,
pub label: String,
}Fields§
§timeout: DurationHow long to wait for a busy lock. Duration::ZERO tries exactly once.
poll: Duration§label: StringRecorded in the owner file so a contender can say who holds the lock.
Implementations§
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
Source§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