Skip to main content

classify_budget

Function classify_budget 

Source
pub fn classify_budget(bytes: u64) -> Result<ArenaBudgetClass, QdnfError>
Expand description

Classify a caller backing size. Exact 42 MiB is the Sentinel pass; (42 MiB, 512 MiB] is an ordinary cell. Smaller than 42 MiB is not a documented scratch class here. Over 512 MiB is over the cell budget. Both fail closed as QdnfError::Capacity.