pub struct FMCfg {
pub initial_count: usize,
pub flush_duration: Duration,
}Expand description
Config for FrozenMMap
Fields§
§initial_count: usizeNumber of slots to pre-allocate when FrozenMMap is initialized
Each slot has size of FrozenMMap::<T>::SLOT_SIZE, where initial file length will
be chunk_size * initial_count (bytes)
flush_duration: DurationTime interval used by flusher tx, to batch write ops into a durable window and sync them together, where all write ops in certain time interval falls into a single durable window
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FMCfg
impl RefUnwindSafe for FMCfg
impl Send for FMCfg
impl Sync for FMCfg
impl Unpin for FMCfg
impl UnsafeUnpin for FMCfg
impl UnwindSafe for FMCfg
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