Struct rustup_available_packages::Downloader[][src]

pub struct Downloader<S, C = NoopCache> { /* fields omitted */ }

Manifests downloader and parser.

Methods

impl<'a> Downloader<DefaultSource<'a>>
[src]

Create a new instance of the Downloader with a DefaultSource.

impl<S> Downloader<S>
[src]

Create a new instance of the Downloader with a provided instance of SourceInfo.

impl<S, C> Downloader<S, C> where
    S: SourceInfo,
    C: Cache
[src]

Sets a cache for the downloader. By default a NoopCache is used.

Get latest available manifests for given days. If days is 0 or 1 only the latest manifest is fetched.

The returned vector is sorted in descending order of dates.

This call is never cached.

Gets manifest for a given date. If the date is None, the latest available manifest is requested.

Gets manifest for a given date. If the date is None, the latest available manifest is requested.

Fetches a manifest from a given url.

Auto Trait Implementations

impl<S, C> Send for Downloader<S, C> where
    C: Send,
    S: Send

impl<S, C> Sync for Downloader<S, C> where
    C: Sync,
    S: Sync