async fn server_dead(server_process: &Mutex<Process>) -> bool {
    match server_process.lock().await.child.try_wait() {
        Ok(None) => false,
        Ok(Some(status)) => {
            info!("Server process exited: {}", status);
            true
        }
        Err(e) => {
            info!("Error getting server process exit status: {}", e);
            true
        }
    }
}
/// returns true if the server process has exited (for any reason), and
/// prints what happened to stdout
returns true if the server process has exited (for any reason), and
prints what happened to stdout
returns true if the server process has exited ( for any reason ) and prints what happened to stdout
async fn server_dead(server_process: &Mutex<Process>) -> bool {
    match server_process.lock().await.child.try_wait() {
        Ok(None) => false,
        Ok(Some(status)) => {
            info!("Server process exited: {}", status);
            true
        }
        Err(e) => {
            info!("Error getting server process exit status: {}", e);
            true
        }
    }
}
async fn server_dead ( server_process : & Mutex < Process > ) -> bool { match server_process . lock ( ) . await . child . try_wait ( ) { Ok ( None ) => false , Ok ( Some ( status ) ) => { info ! ( " " status ) ; true } Err ( e ) => { info ! ( " " e ) ; true } } }
returns true if the server process has exited (for any reason), and
prints what happened to stdout
returns true if the server process has exited ( for any reason ) and prints what happened to stdout
server_process
&Mutex<Process>
server_process
&Mutex<Process>