Expand description
Defines i/o data structures and routines used by various Source implementations
Structs§
- Base
Cache DirError - Returned when the base cache folder is used, but can not be located.
- Document
- A
Documentrepresents a single resource file, usually used to construct a release index. - FsClient
- A client to fetch resources from the local file system.
- Http
Cached Client - The client to download and cache rust releases.
- Http
Client - A client to download rust releases data.
- Resource
File - A resource which can be fetched, named and stored.
- Retrieved
Document - A
Documentwith added information about the its retrieval.
Enums§
- Client
Error - A list of errors which may be produced by
HttpClient::fetch. - FsClient
Error - A list of errors which may be produced by [
CachedClient::fetch]. - Http
Cached Client Error - A list of errors which may be produced by
HttpCachedClient::fetch. - IsStale
Error - Returned in case the staleness check
is_stalefaults. - Retrieval
Location - Location a
Documentwas retrieved from.
Traits§
- Rust
Releases Client - Fetch a document, given a
resourcedescription.
Functions§
- base_
cache_ dir - The default cache dir used by
rust-releasescrates - is_
stale - Determines whether a stored resource is stale