Skip to main content

render_step

Function render_step 

Source
pub fn render_step(
    request: &RenderRequest,
    shown: Option<Rendition>,
    local: &LocalHoldings,
    fetchable: &BTreeSet<Representation>,
) -> RenderStep
Expand description

One step of the render ladder: what to show, and what to obtain next.

shown is what the surface shows now, None when it shows nothing yet or is falling back. The answer never shows less than shown: a rung below it is kept off screen until the surface itself falls back, by calling with None.

fetchable is the representations the server lists for the asset (AssetBlobs::blob_for returns Some) and this device can still fetch.