pub async fn fetch_arch_mirrors(
client: &Client,
limits: MirrorDiscoveryLimits,
) -> Result<Vec<MirrorInfo>>Expand description
What: Fetch Arch’s standard mirror-status endpoint with caller-owned transport policy.
Inputs:
client: Caller-provided reqwest client controlling timeout, proxy, TLS, redirect, and user-agent policy.limits: Explicit response and result bounds for this request.
Output:
- Valid mirror rows accepted from the standard Arch mirror-status schema.
Details:
- Delegates to
fetch_mirrors_fromand does not create its own client or execute any system command. - Callers needing another source can supply it directly with
fetch_mirrors_from.
§Errors
Returns an error for invalid limits, failed requests, non-success statuses, oversized or invalid JSON bodies, and malformed root schema.