Struct commitlog::LogOptions
[−]
[src]
pub struct LogOptions { /* fields omitted */ }
Commit log options allow customization of the commit log behavior.
Methods
impl LogOptions
[src]
pub fn new<P>(log_dir: P) -> LogOptions where
P: AsRef<Path>,
[src]
P: AsRef<Path>,
Creates minimal log options value with a directory containing the log.
The default values are:
- segment_max_bytes: 1GB
- index_max_entries: 100,000
- message_max_bytes: 1mb
pub fn segment_max_bytes(&mut self, bytes: usize) -> &mut LogOptions
[src]
Bounds the size of a log segment to a number of bytes.
pub fn index_max_items(&mut self, items: usize) -> &mut LogOptions
[src]
Bounds the size of an individual memory-mapped index file.
pub fn message_max_bytes(&mut self, bytes: usize) -> &mut LogOptions
[src]
Bounds the size of a message to a number of bytes.
Trait Implementations
impl Clone for LogOptions
[src]
fn clone(&self) -> LogOptions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more