/// Converts one socks authentication struct into another
/// ## Parameters
/// `auth` - Socks authentication of type SocksAuthentication
///
/// ## Returns
/// Socks authentication of type socks::Authentication
Converts one socks authentication struct into another
Converts one socks authentication struct into another
pub fn convert_socks_authentication(auth: SocksAuthentication) -> socks::Authentication {
    match auth {
        SocksAuthentication::None => socks::Authentication::None,
        SocksAuthentication::UsernamePassword(username, password) => {
            socks::Authentication::Password(username, password)
        },
    }
}
pub fn convert_socks_authentication ( auth : SocksAuthentication ) -> socks :: Authentication { match auth { SocksAuthentication :: None => socks :: Authentication :: None , SocksAuthentication :: UsernamePassword ( username , password ) => { socks :: Authentication :: Password ( username , password ) } , } }
Converts one socks authentication struct into another
Converts one socks authentication struct into another
Socks authentication of type socks::Authentication
Socks authentication of type socks :: Authentication
auth
SocksAuthentication