[−][src]Struct watchexec::cli::ArgsBuilder
Builder for Args
.
Methods
impl ArgsBuilder
[src]
pub fn cmd<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Command to execute in popen3 format (first program, rest arguments).
pub fn paths<VALUE: Into<Vec<PathBuf>>>(&mut self, value: VALUE) -> &mut Self
[src]
List of paths to watch for changes.
pub fn filters<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Positive filters (trigger only on matching changes). Glob format.
pub fn ignores<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
Negative filters (do not trigger on matching changes). Glob format.
pub fn clear_screen<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Clear the screen before each run.
pub fn signal<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
If Some, send that signal (e.g. SIGHUP) to the child on change.
pub fn restart<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
If true, kill the child if it's still running when a change comes in.
pub fn debounce<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
[src]
Interval to debounce the changes. (milliseconds)
pub fn debug<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Enable debug/verbose logging.
pub fn run_initially<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Run the commands right after starting.
pub fn no_shell<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Do not wrap the commands in a shell.
pub fn no_vcs_ignore<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Skip auto-loading .gitignore files
pub fn no_ignore<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Skip auto-loading .ignore files
pub fn poll<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
Force using the polling backend.
pub fn poll_interval<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
[src]
Interval for polling. (seconds)
pub fn watch_when_idle<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn build(&self) -> Result<Args, String>
[src]
Trait Implementations
impl Clone for ArgsBuilder
[src]
fn clone(&self) -> ArgsBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ArgsBuilder
[src]
fn default() -> ArgsBuilder
[src]
Auto Trait Implementations
impl Send for ArgsBuilder
impl Sync for ArgsBuilder
impl Unpin for ArgsBuilder
impl UnwindSafe for ArgsBuilder
impl RefUnwindSafe for ArgsBuilder
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,