Skip to main content

cache_release_window_for_streams

Function cache_release_window_for_streams 

Source
pub fn cache_release_window_for_streams(
    active_streams: usize,
) -> Result<NonZeroU64>
Expand description

Derive one non-zero per-stream window from the shared 1 GiB operation budget.

ยงErrors

Returns an error for zero streams, an unrepresentable stream count, or when the stream count is too large to receive even one byte.