pub struct SnapshotOptions {
pub keep_wal: bool,
pub archive_wal: bool,
}Expand description
Options for GraphDb::snapshot_with.
Fields§
§keep_wal: boolWhen true, the WAL is preserved after the snapshot write.
Pre-snapshot commits remain reachable via GraphDb::open_at.
When false (the default), the WAL is truncated to a minimal
baseline so cold-start replay stays fast.
archive_wal: boolWhen true, the current WAL is renamed to wal.<commit_seq>.archive
before a fresh WAL baseline is written (history-preserving snapshot).
This is the feature opt-in: false (the default) leaves the existing
truncation / keep-wal behaviour byte-identical. archive_wal takes
precedence over keep_wal when both are set.
Archives can be scanned by GraphDb::node_history,
GraphDb::edge_history, GraphDb::was_linked, and
GraphDb::open_at, extending the reachable history horizon across
snapshot boundaries.
Trait Implementations§
Source§impl Clone for SnapshotOptions
impl Clone for SnapshotOptions
Source§fn clone(&self) -> SnapshotOptions
fn clone(&self) -> SnapshotOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SnapshotOptions
impl Debug for SnapshotOptions
Source§impl Default for SnapshotOptions
impl Default for SnapshotOptions
Source§fn default() -> SnapshotOptions
fn default() -> SnapshotOptions
Auto Trait Implementations§
impl Freeze for SnapshotOptions
impl RefUnwindSafe for SnapshotOptions
impl Send for SnapshotOptions
impl Sync for SnapshotOptions
impl Unpin for SnapshotOptions
impl UnsafeUnpin for SnapshotOptions
impl UnwindSafe for SnapshotOptions
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.