/// Asserts that the client is waiting at a prompt and clears it.
/// Automatically called when using the send method.
Asserts that the client is waiting at a prompt and clears it.
Automatically called when using the send method.
Asserts that the client is waiting at a prompt and clears it . Automatically called when using the send method .
pub async fn consume_prompt(&mut self) {
        if self.buffer.is_empty() {
            self.recv().await
        }
        self.assert_prompt().await;
        match self.buffer.strip_prefix("> ") {
            Some(rest) => self.buffer = rest.to_string(),
            None => panic!("unable to remove prompt as prefix from buffer"),
        };
        tracing::info!("consumed prompt");
    }
pub async fn consume_prompt ( & mut self ) { if self . buffer . is_empty ( ) { self . recv ( ) . await } self . assert_prompt ( ) . await ; match self . buffer . strip_prefix ( " " ) { Some ( rest ) => self . buffer = rest . to_string ( ) , None => panic ! ( " " ) , } ; tracing :: info ! ( " " ) ; }
Asserts that the client is waiting at a prompt and clears it.
Asserts that the client is waiting at a prompt and clears it .
&mut self