pub struct V9Parser {
pub templates: LruCache<u16, TemplateWithTtl<Template>>,
pub options_templates: LruCache<u16, TemplateWithTtl<OptionsTemplate>>,
pub ttl_config: Option<TtlConfig>,
pub max_template_cache_size: usize,
pub max_error_sample_size: usize,
pub enterprise_registry: EnterpriseFieldRegistry,
}Fields§
§templates: LruCache<u16, TemplateWithTtl<Template>>§options_templates: LruCache<u16, TemplateWithTtl<OptionsTemplate>>§ttl_config: Option<TtlConfig>Optional TTL configuration for template expiration
max_template_cache_size: usizeMaximum number of templates to cache. Defaults to 1000.
max_error_sample_size: usizeMaximum number of bytes to include in error samples to prevent memory exhaustion. Defaults to 256 bytes.
enterprise_registry: EnterpriseFieldRegistryRegistry of custom enterprise field definitions
Implementations§
Trait Implementations§
Source§impl ParserConfig for V9Parser
impl ParserConfig for V9Parser
Source§fn add_config(&mut self, config: Config) -> Result<(), ConfigError>
fn add_config(&mut self, config: Config) -> Result<(), ConfigError>
Source§fn set_max_template_cache_size(
&mut self,
size: usize,
) -> Result<(), ConfigError>
fn set_max_template_cache_size( &mut self, size: usize, ) -> Result<(), ConfigError>
Set the maximum template cache size
Source§fn set_ttl_config(
&mut self,
ttl_config: Option<TtlConfig>,
) -> Result<(), ConfigError>
fn set_ttl_config( &mut self, ttl_config: Option<TtlConfig>, ) -> Result<(), ConfigError>
Set the TTL configuration for templates
Source§fn resize_template_caches(&mut self, cache_size: NonZeroUsize)
fn resize_template_caches(&mut self, cache_size: NonZeroUsize)
Internal helper: resize all template caches to the given size
Auto Trait Implementations§
impl Freeze for V9Parser
impl RefUnwindSafe for V9Parser
impl Send for V9Parser
impl Sync for V9Parser
impl Unpin for V9Parser
impl UnwindSafe for V9Parser
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