Skip to main content

refused_payload_size

Function refused_payload_size 

Source
fn refused_payload_size(lower_bound: usize, max_payload_bytes: usize) -> usize
Expand description

Frame size reported for a payload refused because it does not fit the budget.

A refused payload is never materialized, so there is no measured frame length. The error reports the largest lower bound that is known instead: the price of the literals the refused membership would have written (lower_bound), or - when nothing about the shape is known - one byte over the budget. Either way the number is genuinely above max_payload_bytes; it is a bound, never a measurement, and it is only used for diagnostics.