pub async fn new_in_namespace(
        dir: &str,
        timeout: zx::Duration,
    ) -> Result<DeviceWatcher, Error> {
        let open_dir = open_directory_in_namespace(dir, fio::OPEN_RIGHT_READABLE)?;
        Self::new(dir, open_dir, timeout).await
    }
/// Like `new`, but instead of an already-open directory, `dir` is the path in the component
/// namespace of the directory to be watched.
Like `new`, but instead of an already-open directory, `dir` is the path in the component
namespace of the directory to be watched.
Like ` new ` but instead of an already - open directory ` dir ` is the path in the component namespace of the directory to be watched .
pub async fn new_in_namespace(
        dir: &str,
        timeout: zx::Duration,
    ) -> Result<DeviceWatcher, Error> {
        let open_dir = open_directory_in_namespace(dir, fio::OPEN_RIGHT_READABLE)?;
        Self::new(dir, open_dir, timeout).await
    }
pub async fn new_in_namespace ( dir : & str , timeout : zx :: Duration , ) -> Result < DeviceWatcher , Error > { let open_dir = open_directory_in_namespace ( dir , fio :: OPEN_RIGHT_READABLE ) ? ; Self :: new ( dir , open_dir , timeout ) . await }
Like `new`, but instead of an already-open directory, `dir` is the path in the component
namespace of the directory to be watched.
Like ` new ` but instead of an already - open directory ` dir ` is the path in the component namespace of the directory to be watched .
dir
&str
timeout
zx::Duration
dir
&str
timeout
zx::Duration