pub struct BuildGuard { /* private fields */ }Expand description
Concurrency control for rebuild operations.
Ensures only one build runs at a time, with at most one pending. Uses atomics for lock-free coordination between watcher and builder.
Implementations§
Source§impl BuildGuard
impl BuildGuard
pub fn new() -> Self
Sourcepub fn mark_pending(&self)
pub fn mark_pending(&self)
Mark a pending rebuild request (received during active build).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BuildGuard
impl RefUnwindSafe for BuildGuard
impl Send for BuildGuard
impl Sync for BuildGuard
impl Unpin for BuildGuard
impl UnsafeUnpin for BuildGuard
impl UnwindSafe for BuildGuard
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