pub struct DecoderConfig {
pub transport: Transport,
pub template_lifetime: Option<u32>,
pub max_templates: usize,
pub max_list_depth: 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.
Trait Implementations§
Source§impl Clone for DecoderConfig
impl Clone for DecoderConfig
impl Copy for DecoderConfig
Source§impl Debug for DecoderConfig
impl Debug for DecoderConfig
Source§impl Default for DecoderConfig
impl Default for DecoderConfig
impl Eq for DecoderConfig
Source§impl PartialEq for DecoderConfig
impl PartialEq for DecoderConfig
impl StructuralPartialEq for DecoderConfig
Auto Trait Implementations§
impl Freeze for DecoderConfig
impl RefUnwindSafe for DecoderConfig
impl Send for DecoderConfig
impl Sync for DecoderConfig
impl Unpin for DecoderConfig
impl UnsafeUnpin for DecoderConfig
impl UnwindSafe for DecoderConfig
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