Skip to main content

whole_value_stream

Function whole_value_stream 

Source
pub fn whole_value_stream(
    data: Vec<u8>,
) -> Pin<Box<dyn Stream<Item = Result<Bytes, StoreError>> + Send>>
Expand description

A stream that yields exactly one chunk — the whole value.

The buffering escape hatch, named so it is visible at a call site. Legal for a backend whose values are inherently whole (an in-memory double, a capped hot tier); never for a durable NAR tier.