pub struct IPFixParser { /* private fields */ }Expand description
Stateful IPFIX parser with LRU template caches and optional pending flow support. Supports both native IPFIX templates and V9-style templates embedded in IPFIX messages.
Implementations§
Source§impl IPFixParser
impl IPFixParser
Sourcepub fn validate_config(config: &Config) -> Result<(), ConfigError>
pub fn validate_config(config: &Config) -> Result<(), ConfigError>
Validates a configuration without allocating parser internals.
Sourcepub fn try_new(config: Config) -> Result<Self, ConfigError>
pub fn try_new(config: Config) -> Result<Self, ConfigError>
Source§impl IPFixParser
impl IPFixParser
Sourcepub fn available_template_ids(&self) -> Vec<u16>
pub fn available_template_ids(&self) -> Vec<u16>
Returns a sorted, deduplicated list of all available template IDs.
Trait Implementations§
Source§impl Debug for IPFixParser
impl Debug for IPFixParser
Source§impl Default for IPFixParser
impl Default for IPFixParser
Source§impl ParserConfig for IPFixParser
impl ParserConfig for IPFixParser
Source§fn set_pending_flows_config(
&mut self,
config: Option<PendingFlowsConfig>,
) -> Result<(), ConfigError>
fn set_pending_flows_config( &mut self, config: Option<PendingFlowsConfig>, ) -> Result<(), ConfigError>
Set the pending flows configuration Read more
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
Source§fn add_config(&mut self, config: Config) -> Result<(), ConfigError>
fn add_config(&mut self, config: Config) -> Result<(), ConfigError>
Add or update the parser’s configuration
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 pending_flows_enabled(&self) -> bool
fn pending_flows_enabled(&self) -> bool
Returns whether pending flow caching is enabled.
Source§fn pending_flow_count(&self) -> usize
fn pending_flow_count(&self) -> usize
Returns the total number of pending flow entries across all template IDs.
Source§fn clear_pending_flows(&mut self)
fn clear_pending_flows(&mut self)
Clear all pending flows, recording dropped metrics.
Auto Trait Implementations§
impl Freeze for IPFixParser
impl RefUnwindSafe for IPFixParser
impl Send for IPFixParser
impl Sync for IPFixParser
impl Unpin for IPFixParser
impl UnsafeUnpin for IPFixParser
impl UnwindSafe for IPFixParser
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