pub fn get_hostname() -> Result<OsString, Error>
This function exist for backward compatibility. Use hostname() instead.