Skip to main content

Module image_loader

Module image_loader 

Source
Expand description

Background image fetcher with in-memory cache.

Fetches album art from Sonos speakers over HTTP in a background thread, decodes images via the image crate, and caches decoded DynamicImages by URI. The main thread polls for completed loads each event loop tick.

Design: single-threaded access from the TUI event loop. request() uses RefCell for the pending set so it can be called from render functions that only have &self access.

Structsยง

ImageLoader
Background image loader with request/poll/get API.