pub trait Fetch: Send + Sync {
// Required method
fn fetch(&self, url: &str, done: Box<dyn FnOnce(Fetched) + Send>);
}Expand description
How the viewer gets a remote page or image, given by the host (an
HTTP client of its choice, a cache, the browser’s fetch on the web
build). done may be called from any thread, once.