pub struct SegmentConfig {
pub id: u64,
pub path: PathBuf,
pub sparse_every: usize,
pub bloom_expected_items: usize,
pub bloom_fp_rate: f64,
}Expand description
Configuration for creating or opening a log segment
Fields§
§id: u64Unique identifier for this segment
path: PathBufFile system path where the segment is stored
sparse_every: usizeHow often to record a sparse index entry (every N entries)
bloom_expected_items: usizeExpected number of items for bloom filter sizing
bloom_fp_rate: f64False positive rate for bloom filter
Implementations§
Trait Implementations§
Source§impl Clone for SegmentConfig
impl Clone for SegmentConfig
Source§fn clone(&self) -> SegmentConfig
fn clone(&self) -> SegmentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SegmentConfig
impl RefUnwindSafe for SegmentConfig
impl Send for SegmentConfig
impl Sync for SegmentConfig
impl Unpin for SegmentConfig
impl UnsafeUnpin for SegmentConfig
impl UnwindSafe for SegmentConfig
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