pub struct WatchLock(/* private fields */);Available on non-WebAssembly only.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more