pub struct Watchdog { /* private fields */ }Expand description
A hard --timeout bound for a self-contained (non-child-running) tool.
arm spawns a thread that, once the limit passes, prints
<tool>: timed out after <limit>; aborted to stderr and exits the process
with status 2 (the suite’s usage/runtime-error code). Dropping the guard
— or calling disarm — defuses it, so a run that
finishes in time (or is about to start un-interruptible work, like
ct-edit’s write phase) is never killed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Watchdog
impl RefUnwindSafe for Watchdog
impl Send for Watchdog
impl Sync for Watchdog
impl Unpin for Watchdog
impl UnsafeUnpin for Watchdog
impl UnwindSafe for Watchdog
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