pub enum LockClaim {
Acquired,
HeldByLiveWatcher,
}Expand description
Result of attempting to claim the single-flight watcher lock.
Variants§
Acquired
This process now owns the lock (it was free or the prior owner was stale).
HeldByLiveWatcher
A live watcher already owns the lock; the caller should stand down.
Trait Implementations§
impl Copy for LockClaim
impl Eq for LockClaim
impl StructuralPartialEq for LockClaim
Auto Trait Implementations§
impl Freeze for LockClaim
impl RefUnwindSafe for LockClaim
impl Send for LockClaim
impl Sync for LockClaim
impl Unpin for LockClaim
impl UnsafeUnpin for LockClaim
impl UnwindSafe for LockClaim
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