pub struct Limits {
pub max_depth: usize,
pub max_total_inflated: u64,
pub max_entries: usize,
pub max_index_bytes: usize,
}Expand description
Bomb guards for resolve. Every field is a hard cap that fails loud when
tripped; the inflated-size cap is tracked cumulatively across all layers, not
per layer.
Fields§
§max_depth: usizeMaximum nesting depth before giving up (archive-bomb nesting guard).
max_total_inflated: u64Cumulative inflated bytes across the whole recursion.
max_entries: usizeCumulative number of archive members across the whole recursion.
max_index_bytes: usizeCeiling on a single member’s zran checkpoint/stored-block seek index. A member whose index would exceed this falls back to a one-time temp spill rather than holding an unbounded index in RAM (design Q3 coverage gate).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more