pub struct Limits {
pub max_nodes: usize,
pub max_depth: usize,
pub max_inputs: usize,
pub max_outputs: usize,
}Expand description
Resource limits for graph construction.
These limits prevent excessive resource consumption during graph construction, providing DoS protection when processing untrusted token streams.
Fields§
§max_nodes: usizeMaximum number of nodes in the graph.
max_depth: usizeMaximum depth of the DAG (longest path from input to output).
max_inputs: usizeMaximum number of input declarations.
max_outputs: usizeMaximum number of output declarations.
Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin 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