Expand description
§mirrors-arch
Re-exports§
pub use chrono;
time
Structs§
- Arch
Linux - The type returned as the mirrorlist
- Client
- An asynchronous
Client
to make Requests with. - Country
- Holds a collection of mirrors
- Mirror
- An ArchLinux mirror
Enums§
Functions§
- get_
client - Gets a client that can be used to rate mirrors
- get_
last_ sync time
- Gets a mirror’s last sync time
- get_
mirrors - Get ArchLinux mirrors from an
json
endpoint and return them in a minified format - get_
mirrors_ with_ client - The same as get_mirrors_with_raw but uses a specified Client for requests
- get_
mirrors_ with_ raw - The same as get_mirrors but returns a tuple including the json as a
String
- parse_
local - Parses a
string slice
to the ArchLinux type - rate_
mirror - Queries a mirrorlist and calculates how long it took to get a response