pub struct SnapshotConfig {
pub dir: PathBuf,
pub checkpoint_every_commits: Option<u64>,
pub keep_old: usize,
pub codec: SnapshotOptions,
}Fields§
§dir: PathBuf§checkpoint_every_commits: Option<u64>When set, create a managed checkpoint after this many committed WAL
transactions. None keeps checkpointing manual via sync() /
checkpoint_managed().
keep_old: usizeNumber of older checkpoint files to retain in addition to CURRENT.
codec: SnapshotOptionsColumnar snapshot codec options. Defaults to fast gzip compression and no encryption.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotConfig
impl Clone for SnapshotConfig
Source§fn clone(&self) -> SnapshotConfig
fn clone(&self) -> SnapshotConfig
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 SnapshotConfig
impl RefUnwindSafe for SnapshotConfig
impl Send for SnapshotConfig
impl Sync for SnapshotConfig
impl Unpin for SnapshotConfig
impl UnsafeUnpin for SnapshotConfig
impl UnwindSafe for SnapshotConfig
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