#[non_exhaustive]pub enum LimitKind {
Show 47 variants
EnumSize,
ArrayLength,
NodeCount,
RecursionDepth,
StateCount,
TransitionCount,
ShuffleFields,
ShuffleStates,
ShuffleEdges,
ProductBranches,
ProductStates,
ProductEdges,
VocabSize,
TokenByteLen,
ArtifactBytes,
PropertyCount,
DocumentBytes,
KeyBytes,
StringBytes,
NumberBytes,
ActiveValidators,
CanonicalBytes,
UndoEntries,
MaskWork,
MaskScratchBytes,
PlanBytes,
SessionBytes,
AllocationBytes,
DocumentCount,
AstNodeCount,
AstBytes,
ResourceCount,
InputBytes,
PatternInputBytes,
PatternHirNodes,
PatternNfaBytes,
PatternDfaBytes,
PatternCompileWork,
UriBytes,
AnchorCount,
ReferenceCount,
SchemaLocationCount,
ResourceDepth,
DynamicScopeDepth,
ResolutionWork,
ResourceGraphBytes,
ResourceBuildBytes,
}Expand description
Resource-limit kinds. The variants and error type are stable; no numeric bound is enforced for any of them.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EnumSize
Number of members in an enum.
ArrayLength
Length of an array.
NodeCount
Number of IR nodes.
RecursionDepth
Depth of nested recursion.
StateCount
Number of reference states.
TransitionCount
Number of stored transitions.
ShuffleFields
Number of independently orderable shuffle fields.
ShuffleStates
Number of states admitted by one shuffle construction.
ShuffleEdges
Number of edges admitted by one shuffle construction.
ProductBranches
Number of branches admitted by one product construction.
ProductStates
Number of states admitted by one product construction.
ProductEdges
Number of edges admitted by one product construction.
VocabSize
Size of the vocabulary.
TokenByteLen
Byte length of a single token.
ArtifactBytes
Size in bytes of a compiled artifact.
PropertyCount
Number of properties observed on one object instance.
DocumentBytes
Byte length of the accumulated document a session has processed.
KeyBytes
Byte length of one object property key.
StringBytes
Byte length of one string value.
NumberBytes
Byte length of one number literal.
ActiveValidators
Number of simultaneously active nested validators (e.g. dependentSchemas/unevaluated*).
CanonicalBytes
Retained bytes in the uniqueItems canonical-value arena.
UndoEntries
Number of entries in a session’s undo log.
MaskWork
Accounted work units spent computing one mask.
MaskScratchBytes
Retained bytes in one structured matcher traversal stack.
PlanBytes
Size in bytes of a compiled StructuredPlan.
SessionBytes
Retained bytes of one session’s mutable state.
AllocationBytes
Bytes requested from an allocator for a bounded runtime container.
DocumentCount
Number of registered schema documents.
AstNodeCount
Number of values retained by parsed schema ASTs.
AstBytes
Heap bytes retained by parsed schema ASTs.
ResourceCount
Number of discovered schema resources.
InputBytes
Aggregate bytes of registered schema documents.
PatternInputBytes
Source bytes accepted by the canonical ECMA pattern lowering path.
PatternHirNodes
Estimated syntax/HIR nodes produced by pattern parsing.
PatternNfaBytes
Thompson NFA bytes or states retained during pattern construction.
PatternDfaBytes
Determinized DFA bytes or states retained during pattern construction.
PatternCompileWork
Bounded pattern parsing and automaton-construction work units.
UriBytes
URI bytes retained by the resource graph.
AnchorCount
Number of static and dynamic anchors.
ReferenceCount
Number of $ref and $dynamicRef occurrences.
SchemaLocationCount
Number of indexed schema locations.
ResourceDepth
Nested schema-resource depth established by $id.
DynamicScopeDepth
Number of schema resources retained in one runtime dynamic-scope chain.
ResolutionWork
Bounded resource-discovery and reference-resolution work.
ResourceGraphBytes
Retained bytes in the frozen schema-resource graph.
ResourceBuildBytes
Peak bytes retained while constructing a schema-resource graph.