Crate device_watcher

source ·

Structs§

Functions§

  • 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.
  • 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. Does NOT support fio::DirectoryMarker. Use recursive_wait_and_open_directory() instead. TODO(https://fxbug.dev/42072966): Specialize this function to support fio::DirectoryMarker
  • 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.
  • Watches the directory for a device for which the predicate returns Some(t) and returns t.
  • 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.