pub async fn passive_mode_connection(&mut self) -> Result<TcpStream, crate::error::Error> {
        let response = self
            .write_command_expecting("PASV", vec![StatusCodeKind::EnteredPassiveMode])
            .await?;
        let socket = self.decode_passive_mode_ip(&response.message)?;

        Ok(TcpStream::connect(socket).await?)
    }
/// Create a passive mode connection.
Create a passive mode connection.
Create a passive mode connection .
pub async fn passive_mode_connection(&mut self) -> Result<TcpStream, crate::error::Error> {
        let response = self
            .write_command_expecting("PASV", vec![StatusCodeKind::EnteredPassiveMode])
            .await?;
        let socket = self.decode_passive_mode_ip(&response.message)?;
        Ok(TcpStream::connect(socket).await?)
    }
pub async fn passive_mode_connection ( & mut self ) -> Result < TcpStream , crate :: error :: Error > { let response = self . write_command_expecting ( " " , vec ! [ StatusCodeKind EnteredPassiveMode ] ) . await ? ; let socket = self . decode_passive_mode_ip ( & response . message ) ? ; Ok ( TcpStream :: connect ( socket ) . await ? ) }
Create a passive mode connection.
Create a passive mode connection .
&mut self
&mut self