#[non_exhaustive]pub struct TableOptions {
pub auto_compact: bool,
}Expand description
How a LiveTable manages its storage.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.auto_compact: boolWhether LiveTable::upsert and LiveTable::delete compact the table when
superseded rows outnumber live ones (at least 4,096 of them) or more than 4,096 batches
were stored since the last compaction. Compaction copies every live row, a pause
proportional to the table;
without it, call LiveTable::compact when convenient. Default: on.
Implementations§
Source§impl TableOptions
impl TableOptions
Sourcepub fn with_auto_compact(self, auto_compact: bool) -> Self
pub fn with_auto_compact(self, auto_compact: bool) -> Self
The options with automatic compaction on or off.
Trait Implementations§
Source§impl Clone for TableOptions
impl Clone for TableOptions
impl Copy for TableOptions
Source§impl Debug for TableOptions
impl Debug for TableOptions
Source§impl Default for TableOptions
impl Default for TableOptions
impl Eq for TableOptions
Source§impl PartialEq for TableOptions
impl PartialEq for TableOptions
impl StructuralPartialEq for TableOptions
Auto Trait Implementations§
impl Freeze for TableOptions
impl RefUnwindSafe for TableOptions
impl Send for TableOptions
impl Sync for TableOptions
impl Unpin for TableOptions
impl UnsafeUnpin for TableOptions
impl UnwindSafe for TableOptions
Blanket Implementations§
impl<T> Allocation for T
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