Crate mirrors_arch

Source
Expand description

§mirrors-arch

Re-exports§

pub use chrono;time

Structs§

ArchLinux
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§

Error
Error type definitions returned by the crate
Protocol
Protocols serving the mirrors

Functions§

get_client
Gets a client that can be used to rate mirrors
get_last_synctime
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