You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: node.rs
    path of file: ./repos/diem/testsuite/forge/src/interface
    
    the code of the file until where you have to start completion: // Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0

use crate::{Result, Version};
use anyhow::anyhow;
use debug_interface::NodeDebugClient;
use diem_config::{config::NodeConfig, network_id::NetworkId};
use diem_sdk::{
    client::{BlockingClient, Client as JsonRpcClient},
    types::PeerId,
};
use std::{
    collections::HashMap,
    thread,
    time::{Duration, Instant},
};
use url::Url;

#[derive(Debug)]
pub e
    
    fn wait_until_healthy(&mut self, deadline: Instant) -> Result<()> {
        while Instant::now() < deadline {
            match self.health_check() {
                Ok(()) => return Ok(()),
                Err(HealthCheckError::NotRunning) => {
                    return Err(anyhow::anyhow!(
                        "Node {}:{} not running",
                        self.name(),
                        self.peer_id()
                    ))
                }
                Err(_) => {} // For other errors we'll retry
            }

            thread::sleep(Duration::from_millis(500));
        }

        Err(anyhow::anyhow!(
            "Timed out waiting for Node {}:{} to be healthy",
            self.name(),
            self.peer_id()
        ))
    }