pub struct RebuildWorker { /* private fields */ }Expand description
Owns a rebuild thread. Keep this handle alive for the server’s lifetime.
Shutdown discards pending ticks and waits for the active rebuild, including any subprocesses it waits on. Dropping the handle also shuts down the worker.
Implementations§
Source§impl RebuildWorker
impl RebuildWorker
Sourcepub fn sender(&self) -> TickSender
pub fn sender(&self) -> TickSender
Clone the sender used by a watcher to enqueue changed paths.
Trait Implementations§
Source§impl Drop for RebuildWorker
impl Drop for RebuildWorker
Auto Trait Implementations§
impl !RefUnwindSafe for RebuildWorker
impl !UnwindSafe for RebuildWorker
impl Freeze for RebuildWorker
impl Send for RebuildWorker
impl Sync for RebuildWorker
impl Unpin for RebuildWorker
impl UnsafeUnpin for RebuildWorker
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