pub async fn block_until_disconnect(&mut self) -> &ClientState {
        let mut cur_status = self.get_cur_status();
        loop {
            match cur_status {
                ClientState::Disconnected(_) => break,
                _ => {
                    // Wait until status changes
                    cur_status = self.wait_for_status_change().await;
                }
            }
        }

        &self.core_status
    }
/// Blocks the caller until the connection with the server is terminated
Blocks the caller until the connection with the server is terminated
Blocks the caller until the connection with the server is terminated
pub async fn block_until_disconnect(&mut self) -> &ClientState {
        let mut cur_status = self.get_cur_status();
        loop {
            match cur_status {
                ClientState::Disconnected(_) => break,
                _ => {
                    // Wait until status changes
                    cur_status = self.wait_for_status_change().await;
                }
            }
        }
        &self.core_status
    }
pub async fn block_until_disconnect ( & mut self ) -> & ClientState { let mut cur_status = self . get_cur_status ( ) ; loop { match cur_status { ClientState :: Disconnected ( _ ) => break , _ => { // Wait until status changes cur_status = self . wait_for_status_change ( ) . await ; } } } & self . core_status }
Blocks the caller until the connection with the server is terminated
Blocks the caller until the connection with the server is terminated
&mut self