pub async fn validate_removal_of_device_in_isolated_devmgr(
    dir_path_str: &str,
) -> Result<(), Error> {
    let protocol_dir =
        open_dir_in_isolated_devmgr(dir_path_str).context("opening dir in isolated devmgr")?;
    let directory_proxy = fidl_fuchsia_io::DirectoryProxy::new(
        fuchsia_async::Channel::from_channel(fdio::clone_channel(&protocol_dir)?)?,
    );
    loop {
        let ot_devices = files_async::readdir(&directory_proxy).await?;
        if ot_devices.is_empty() {
            break;
        }
    }
    Ok::<(), Error>(())
}
/// Validate 0 device is presented in path `dir_path_str` in isolated_devmgr
Validate 0 device is presented in path `dir_path_str` in isolated_devmgr
Validate 0 device is presented in path ` dir_path_str ` in isolated_devmgr
pub async fn validate_removal_of_device_in_isolated_devmgr(
    dir_path_str: &str,
) -> Result<(), Error> {
    let protocol_dir =
        open_dir_in_isolated_devmgr(dir_path_str).context("opening dir in isolated devmgr")?;
    let directory_proxy = fidl_fuchsia_io::DirectoryProxy::new(
        fuchsia_async::Channel::from_channel(fdio::clone_channel(&protocol_dir)?)?,
    );
    loop {
        let ot_devices = files_async::readdir(&directory_proxy).await?;
        if ot_devices.is_empty() {
            break;
        }
    }
    Ok::<(), Error>(())
}
pub async fn validate_removal_of_device_in_isolated_devmgr ( dir_path_str : & str , ) -> Result < ( ) , Error > { let protocol_dir = open_dir_in_isolated_devmgr ( dir_path_str ) . context ( " " ) ? ; let directory_proxy = fidl_fuchsia_io :: DirectoryProxy :: new ( fuchsia_async :: Channel :: from_channel ( fdio :: clone_channel ( & protocol_dir ) ? ) ? , ) ; loop { let ot_devices = files_async :: readdir ( & directory_proxy ) . await ? ; if ot_devices . is_empty ( ) { break ; } } Ok :: < ( ) , Error > ( ( ) ) }
Validate 0 device is presented in path `dir_path_str` in isolated_devmgr
Validate 0 device is presented in path ` dir_path_str ` in isolated_devmgr
dir_path_str
&str
dir_path_str
&str