Skip to main content

Module opaque

Module opaque 

Source
Expand description

Resolve keys from an opaque asynchronous fetcher.

This module owns the generic resolver actor used when fetching data only requires asking an application-provided source for raw bytes or objects. Implementations provide Fetcher::fetch; this module handles request coalescing, retain pruning, retry scheduling, consumer delivery, and cached-response redelivery. An ignored consumer outcome retires the key without accepting the value or retrying the source. A verdict the consumer drops without answering hands the response to the remaining subscribers, or retires the key when none remain.

Target hints supplied through crate::TargetedResolver::fetch_targeted and crate::TargetedResolver::fetch_all_targeted are ignored because opaque fetchers do not have peer-specific routing.

Structs§

Resolver
Handle to an opaque-fetcher resolver actor.

Traits§

Fetcher
Fetches raw values for resolver keys.

Functions§

init
Spawn an opaque-fetcher resolver actor.