watchexec 8.2.0

Library to execute commands in response to file modifications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::time::Duration;
use watchexec_signals::Signal;

/// How the Watchexec instance should quit.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum QuitManner {
	/// Kill all processes and drop all jobs, then quit.
	Abort,

	/// Gracefully stop all jobs, then quit.
	Graceful {
		/// Signal to send immediately
		signal: Signal,
		/// Time to wait before forceful termination
		grace: Duration,
	},
}