pub enum RestoreError {
PhaseFailed {
lifecycle: Lifecycle,
frame_seq: u64,
message: String,
},
TornWriteMidStream {
frame_seq: u64,
reason: String,
},
BaselineMissing,
CodecMismatch {
frame_seq: u64,
expected: String,
found: String,
},
WalTierRequired,
}Expand description
Replay-time failures from Graph::restore_snapshot({ mode: "diff" }).
Variants§
PhaseFailed
A phase’s batch() rejected. lifecycle and frame_seq identify the
boundary; message carries the underlying cause. Earlier phases stay
committed (Q2 partial-restore semantics).
TornWriteMidStream
A mid-stream frame’s checksum mismatched and the
on_torn_write policy resolved to “abort”. The Q3 default is
“abort” for mid-stream (vs “skip” for WAL tail).
BaselineMissing
restore_snapshot({ mode: "diff" }) ran with no mode:"full" baseline
in the snapshot tier — replay needs a starting point.
CodecMismatch
A frame’s format_version doesn’t match the tier’s configured codec.
Distinct from StorageError::CodecMismatch which is tier-level;
this one is replay-time.
WalTierRequired
Caller passed a source: { tier } shape without a wal_tier when the
snapshot tier itself doesn’t carry WAL frames. Distinct from
StorageError::BackendNoListSupport because the diagnostic is
“you forgot to wire the WAL tier”, not “the backend can’t enumerate”.
Trait Implementations§
Source§impl Debug for RestoreError
impl Debug for RestoreError
Source§impl Display for RestoreError
impl Display for RestoreError
Source§impl Error for RestoreError
impl Error for RestoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()