pub async fn write_command_expecting(
        &mut self,
        cmd: &str,
        valid_statuses: Vec<StatusCodeKind>,
    ) -> Result<ServerResponse, crate::error::Error> {
        self.write_command(cmd).await?;
        self.parse_reply_expecting(valid_statuses).await
    }
/// Write a command to the server expecting a list of positive status codes.
Write a command to the server expecting a list of positive status codes.
Write a command to the server expecting a list of positive status codes .
pub async fn write_command_expecting(
        &mut self,
        cmd: &str,
        valid_statuses: Vec<StatusCodeKind>,
    ) -> Result<ServerResponse, crate::error::Error> {
        self.write_command(cmd).await?;
        self.parse_reply_expecting(valid_statuses).await
    }
pub async fn write_command_expecting ( & mut self , cmd : & str , valid_statuses : Vec < StatusCodeKind > , ) -> Result < ServerResponse , crate :: error :: Error > { self . write_command ( cmd ) . await ? ; self . parse_reply_expecting ( valid_statuses ) . await }
Write a command to the server expecting a list of positive status codes.
Write a command to the server expecting a list of positive status codes .
&mut self
cmd
&str
valid_statuses
Vec<StatusCodeKind>
&mut self
cmd
&str
valid_statuses
Vec<StatusCodeKind>