pub struct DecoderConfig {
pub transport: Transport,
pub template_lifetime: Option<u32>,
pub max_templates: usize,
pub max_list_depth: usize,
pub max_enterprise_elements: usize,
}Expand description
Decoder configuration
Fields§
§transport: TransportTransport protocol of the Transport Session, which drives Template management (RFC 7011 Section 8.4). Defaults to UDP, the transport of most deployments.
template_lifetime: Option<u32>Template lifetime in seconds, for UDP only (RFC 7011 Section 8.4):
Templates not refreshed for longer than this are discarded. None
(the default) keeps Templates until they are redefined.
max_templates: usizeMaximum number of Templates and Options Templates kept in the cache,
across all Observation Domains. Defining a new Template beyond this
limit returns ParseError::TemplateLimitExceeded; redefining an
existing Template is always allowed.
max_list_depth: usizeMaximum nesting depth of structured data (RFC 6313 lists). Deeper lists
are kept as FieldValue::Raw.
max_enterprise_elements: usizeMaximum number of enterprise-specific Information Element definitions learned from type records (RFC 5610), across all Observation Domains. Further type records are ignored.