[][src]Struct watchexec::cli::ArgsBuilder

pub struct ArgsBuilder { /* fields omitted */ }

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 build(&self) -> Result<Args, String>[src]

Builds a new Args.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ArgsBuilder[src]

impl Default for ArgsBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]