Struct commitlog::LogOptions
[−]
[src]
pub struct LogOptions { /* fields omitted */ }
Commit log options allow customization of the commit log behavior.
Methods
impl LogOptions
[src]
fn new<P>(log_dir: P) -> LogOptions where 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
fn segment_max_bytes(&mut self, bytes: usize) -> &mut LogOptions
Bounds the size of a log segment to a number of bytes.
fn index_max_items(&mut self, items: usize) -> &mut LogOptions
Bounds the size of an individual memory-mapped index file.
Trait Implementations
impl Clone for LogOptions
[src]
fn clone(&self) -> LogOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more