pub struct Config {
pub durability: Durability,
pub compact_after_ops: usize,
pub compact_after_wal_bytes: u64,
pub ttl: TtlConfig,
pub lock_wait: Duration,
}Expand description
Store configuration.
Fields§
§durability: DurabilityWAL fsync policy.
compact_after_ops: usizeFold the WAL into a new base after this many committed ops.
compact_after_wal_bytes: u64… or after the WAL grows past this many bytes, whichever first.
ttl: TtlConfigAdaptive-freshness policy applied by Writer::touch.
lock_wait: DurationHow long a commit waits for another writer’s commit lock before
giving up with Error::Locked.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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