Skip to main content

render_codec

Function render_codec 

Source
pub fn render_codec(
    plan: &Plan<CodecProjection>,
    out: &mut Output<'_, CodecProjection>,
) -> Result<(), RenderError>
Expand description

Render the one unit a codec request produces.

Naming the seat is the whole call: everything else the unit answers to is that seat’s planned member, read by the sink.

§Errors

Returns RenderError::SeatUnplanned where the plan declares no member under the kind’s one seat, RenderError::BytesUnbounded where the surface passes the rendered-byte magnitude, and RenderError::TokensUnbounded where a level of it passes the per-level one.