Skip to main content

Crate manabrew_art_cache

Crate manabrew_art_cache 

Source
Expand description

Card art on disk, keyed by the path below cards.scryfall.io so a request path maps straight to a file. That is what lets one machine serve its cache to another.

Re-exports§

pub use server::ArtServer;

Modules§

server
Serving a card art cache to a network, so only one machine in a group has to have gone online.

Structs§

BulkProgress
CacheStats
ImageCache
PreseedResult

Constants§

CACHE_DIR

Functions§

cancel_download
Stops a running ImageCache::download_all.
key_from_request_path
The path a /scryfall-img/ request is asking for. The query and fragment go the way key_from_url already drops them: on the LAN listener this is the only thing shaping network input before path_for sees it.
key_from_url
The cache key inside a full CDN url.
mime_for