start_hot_reload_watcher

Function start_hot_reload_watcher 

Source
fn start_hot_reload_watcher(
    watch_dirs: &[String],
    _callback: impl Fn() + Send + 'static,
) -> Result<()>
Expand description

Starts a hot-reload watcher.

§Arguments

  • watch_dirs - Directories to watch
  • callback - Function to call on file changes

§Returns

Result indicating success or failure