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 max_follow_backoff: Duration,
pub poll_interval: Duration,
}Expand description
Runtime configuration for Journal.
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.
max_follow_backoff: DurationMaximum follow retry backoff.
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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JournalConfig
impl Debug for JournalConfig
Auto Trait Implementations§
impl Freeze for JournalConfig
impl RefUnwindSafe for JournalConfig
impl Send for JournalConfig
impl Sync for JournalConfig
impl Unpin for JournalConfig
impl UnwindSafe for JournalConfig
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