pub struct JournalConfig {
pub max_object_size_bytes: u64,
pub max_decompressed_bytes: usize,
pub max_field_name_len: usize,
pub max_fields_per_entry: usize,
pub max_journal_files: usize,
pub max_object_chain_steps: usize,
pub max_query_terms: usize,
pub allow_mmap_online: bool,
pub include_journal_tilde: bool,
pub poll_interval: Duration,
}Expand description
Runtime configuration for crate::Journal.
These limits are primarily defensive: they bound memory use and traversal work when reading malformed, truncated, or unexpectedly large journal files.
Fields§
§max_object_size_bytes: u64Maximum object size accepted from the journal file.
max_decompressed_bytes: usizeMaximum bytes allowed after decompressing a DATA payload.
max_field_name_len: usizeMaximum length of a field name.
max_fields_per_entry: usizeMaximum number of fields accepted per entry.
max_journal_files: usizeMaximum number of journal files included from a single scan.
max_object_chain_steps: usizeMaximum number of steps when traversing any next_* chain.
max_query_terms: usizeMaximum number of query terms (matches) accepted per query.
allow_mmap_online: boolWhether to allow mmap for STATE_ONLINE (potentially still being written) journal files.
include_journal_tilde: boolWhether to include *.journal~ temporary/incomplete files during discovery.
poll_interval: DurationPolling interval used as fallback when inotify is unavailable/unreliable.
Trait Implementations§
Source§impl Clone for JournalConfig
impl Clone for JournalConfig
Source§fn clone(&self) -> JournalConfig
fn clone(&self) -> JournalConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more