Skip to main content

Crate rust_releases_io

Crate rust_releases_io 

Source
Expand description

Defines i/o data structures and routines used by various Source implementations

Structs§

BaseCacheDirError
Returned when the base cache folder is used, but can not be located.
Document
A Document represents a single resource file, usually used to construct a release index.
FsClient
A client to fetch resources from the local file system.
HttpCachedClient
The client to download and cache rust releases.
HttpClient
A client to download rust releases data.
ResourceFile
A resource which can be fetched, named and stored.
RetrievedDocument
A Document with added information about the its retrieval.

Enums§

ClientError
A list of errors which may be produced by HttpClient::fetch.
FsClientError
A list of errors which may be produced by [CachedClient::fetch].
HttpCachedClientError
A list of errors which may be produced by HttpCachedClient::fetch.
IsStaleError
Returned in case the staleness check is_stale faults.
RetrievalLocation
Location a Document was retrieved from.

Traits§

RustReleasesClient
Fetch a document, given a resource description.

Functions§

base_cache_dir
The default cache dir used by rust-releases crates
is_stale
Determines whether a stored resource is stale