Function watchexec::run::watch[][src]

pub fn watch<H>(handler: &H) -> Result<()> where
    H: Handler

Starts watching, and calls a handler when something happens.

Given an argument structure and a Handler type, starts the watcher loop, blocking until done.