pub struct V8Limits {
pub max_depth: usize,
pub max_nodes: usize,
}Expand description
Resource bounds for the deserializer — the guard against stack overflow, unbounded allocation, and reference-amplification on untrusted input.
Fields§
§max_depth: usizeMaximum nesting depth of arrays/objects/maps/sets.
max_nodes: usizeMaximum total materialized values (fresh reads and reference clones).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for V8Limits
impl RefUnwindSafe for V8Limits
impl Send for V8Limits
impl Sync for V8Limits
impl Unpin for V8Limits
impl UnsafeUnpin for V8Limits
impl UnwindSafe for V8Limits
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