pub fn connect(
        hostname: &str,
        user: &str,
        password: &str,
    ) -> Result<Self, crate::error::Error> {
        let mut runtime = Runtime::new().unwrap();
        let inner_client =
            runtime.block_on(AsyncClient::connect_with_port(hostname, 21, user, password))?;

        Ok(Client {
            inner_client,
            runtime,
        })
    }
/// Connect to a new FTP server using plain text (no TLS).
Connect to a new FTP server using plain text (no TLS).
Connect to a new FTP server using plain text ( no TLS ) .
pub fn connect(
        hostname: &str,
        user: &str,
        password: &str,
    ) -> Result<Self, crate::error::Error> {
        let mut runtime = Runtime::new().unwrap();
        let inner_client =
            runtime.block_on(AsyncClient::connect_with_port(hostname, 21, user, password))?;
        Ok(Client {
            inner_client,
            runtime,
        })
    }
pub fn connect ( hostname : & str , user : & str , password : & str , ) -> Result < Self , crate :: error :: Error > { let mut runtime = Runtime :: new ( ) . unwrap ( ) ; let inner_client = runtime . block_on ( AsyncClient :: connect_with_port ( hostname , 21 , user , password ) ) ? ; Ok ( Client { inner_client , runtime , } ) }
Connect to a new FTP server using plain text (no TLS).
Connect to a new FTP server using plain text ( no TLS ) .
hostname
&str
user
&str
password
&str
hostname
&str
user
&str
password
&str