Skip to content
#

watcher

Here are 295 public repositories matching this topic...

notify
pickfire
pickfire commented Feb 23, 2020

Since there can only be one RecommendedWatcher, why do we still need to explicitly specify the type? Taken from the new docs.

use notify::{Watcher, RecommendedWatcher, RecursiveMode, Result};

fn main() -> Result<()> {
    // Automatically select the best implementation for your platform.
    let mut watcher: RecommendedWatcher = Watcher::new_immediate(|res| {
        match res 

Improve this page

Add a description, image, and links to the watcher topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the watcher topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.