Module token_tracker

Module token_tracker 

Source
Expand description

A token tracker for tracking tokens in a lexer.

Structs§

TokenLimitExceeded
Error returned when token count exceeds the configured limit.
TokenLimiter
A token counter that prevents DoS attacks by limiting total token count.

Traits§

TokenTracker
A token tracker trait.