pub async fn refresh_host_info(host: Arc<RwLock<HostDevice>>) -> types::Result<()> {
    let proxy = host.read().host.clone();
    let info = proxy.watch_state().await?;
    host.write().info.update(info.try_into()?);
    Ok(())
}
// TODO(armansito): It feels odd to expose it only so it is available to test/host_device.rs. It
// might be better to move the host_device tests into this module.
It feels odd to expose it only so it is available to test/host_device.rs. It
might be better to move the host_device tests into this module.
It feels odd to expose it only so it is available to test / host_device . rs . It might be better to move the host_device tests into this module .
pub async fn refresh_host_info(host: Arc<RwLock<HostDevice>>) -> types::Result<()> {
    let proxy = host.read().host.clone();
    let info = proxy.watch_state().await?;
    host.write().info.update(info.try_into()?);
    Ok(())
}
pub async fn refresh_host_info ( host : Arc < RwLock < HostDevice > > ) -> types :: Result < ( ) > { let proxy = host . read ( ) . host . clone ( ) ; let info = proxy . watch_state ( ) . await ? ; host . write ( ) . info . update ( info . try_into ( ) ? ) ; Ok ( ( ) ) }
TODO(armansito): It feels odd to expose it only so it is available to test/host_device.rs.
TODO ( armansito ) : It feels odd to expose it only so it is available to test / host_device . rs .
host
Arc<RwLock<HostDevice>>