Crate device_watcher

Source

Structs§

DeviceInfo

Functions§

recursive_wait
Wait for name to be available in dir. This function waits for each directory along the path and returns once it has waited on the final component in the path. If the path never appears this function will wait forever.
recursive_wait_and_open
Connect to an instance of FIDL protocol hosted at name within dir. This function waits for each directory to be available before it opens it. If the path never appears this function will wait forever.
recursive_wait_and_open_directory
Open the path name within dir. This function waits for each directory to be available before it opens it. If the path never appears this function will wait forever.
wait_for_device_with
Watches the directory for a device for which the predicate returns Some(t) and returns t.
watch_for_files
Returns a stream that contains the paths of any existing files and directories in dir and any new files or directories created after this function was invoked. These paths are relative to dir.