pub async fn new(
        debug_dir_name: &str,
        open_dir: DirectoryProxy,
        timeout: zx::Duration,
    ) -> Result<DeviceWatcher, Error> {
        let watched_dir = Clone::clone(&open_dir);
        Ok(DeviceWatcher {
            debug_dir_name: PathBuf::from(debug_dir_name),
            watcher: VfsWatcher::new(open_dir).await?,
            timeout,
            watched_dir,
        })
    }
/// Returns a DeviceWatcher. `open_dir` is an existing proxy to the directory to be watched.
/// `debug_dir_path` is the path to `open_dir`, passed along for clearer debugging.
///
/// All `watch_*` operations return a Future that resolves successfully when the condition is
/// met, or in an error if the condition is not met within `timeout`.


All `watch_*` operations return a Future that resolves successfully when the condition is
met, or in an error if the condition is not met within `timeout`.
All ` watch_ * ` operations return a Future that resolves successfully when the condition is met or in an error if the condition is not met within ` timeout ` .
pub async fn new(
        debug_dir_name: &str,
        open_dir: DirectoryProxy,
        timeout: zx::Duration,
    ) -> Result<DeviceWatcher, Error> {
        let watched_dir = Clone::clone(&open_dir);
        Ok(DeviceWatcher {
            debug_dir_name: PathBuf::from(debug_dir_name),
            watcher: VfsWatcher::new(open_dir).await?,
            timeout,
            watched_dir,
        })
    }
pub async fn new ( debug_dir_name : & str , open_dir : DirectoryProxy , timeout : zx :: Duration , ) -> Result < DeviceWatcher , Error > { let watched_dir = Clone :: clone ( & open_dir ) ; Ok ( DeviceWatcher { debug_dir_name : PathBuf :: from ( debug_dir_name ) , watcher : VfsWatcher :: new ( open_dir ) . await ? , timeout , watched_dir , } ) }
Returns a DeviceWatcher.
Returns a DeviceWatcher .
debug_dir_name
&str
open_dir
DirectoryProxy
timeout
zx::Duration
debug_dir_name
&str
open_dir
DirectoryProxy
timeout
zx::Duration