pub struct RestoreOptions<'a> {
pub snapshot_tier: &'a dyn SnapshotStorageTier<GraphCheckpointRecord>,
pub wal_tier: &'a dyn KvStorageTier<WALFrame<Value>>,
pub target_seq: Option<u64>,
pub on_torn_write: Option<OnTornWrite>,
}Expand description
Options for restore_snapshot.
Fields§
§snapshot_tier: &'a dyn SnapshotStorageTier<GraphCheckpointRecord>Snapshot tier to load the baseline from.
wal_tier: &'a dyn KvStorageTier<WALFrame<Value>>WAL tier to enumerate delta frames from.
target_seq: Option<u64>Optional max frame_seq to replay up to. None = replay all.
on_torn_write: Option<OnTornWrite>Torn-write callback. If None, defaults: tail = Skip, mid = Abort.
Auto Trait Implementations§
impl<'a> Freeze for RestoreOptions<'a>
impl<'a> !RefUnwindSafe for RestoreOptions<'a>
impl<'a> Send for RestoreOptions<'a>
impl<'a> Sync for RestoreOptions<'a>
impl<'a> Unpin for RestoreOptions<'a>
impl<'a> UnsafeUnpin for RestoreOptions<'a>
impl<'a> !UnwindSafe for RestoreOptions<'a>
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