pub struct WatchLock(/* private fields */);Expand description
A lock handle used to coordinate file reads with watch-driven rebuilds.
Obtain it from Watch::lock, clone it, and call WatchLock::acquire while
reading files that must not race with rebuild writes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WatchLock
impl RefUnwindSafe for WatchLock
impl Send for WatchLock
impl Sync for WatchLock
impl Unpin for WatchLock
impl UnsafeUnpin for WatchLock
impl UnwindSafe for WatchLock
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