pub trait ThumbSource<K> {
// Required method
fn thumb(&self, key: &K, size: u32) -> Thumb;
// Provided method
fn wanted(&self, keys: &[K], size: u32) { ... }
}Expand description
Where thumbnails come from; the application implements it, loading them asynchronously (a thread, its engine), caching them, and asking for a repaint when one arrives.