Skip to main content

fetch_servers

Function fetch_servers 

Source
pub async fn fetch_servers(
    client: &Client,
) -> Result<Vec<Server>, SpeedtestError>
Expand description

Fetch the list of available speedtest servers, sorted by distance.

ยงErrors

Returns SpeedtestError::NetworkError if fetching the server list fails. Returns SpeedtestError::DeserializeXml if the XML response cannot be parsed.