Enum ReplayError
pub enum ReplayError {
Journal(JournalError),
Reduce(ReduceError),
MissingRunMeta,
IncompleteRunMeta(&'static str),
UnsupportedSchema(u16),
CheckpointHashMismatch {
expected: String,
got: String,
},
CheckpointRunIdMismatch {
expected: Uuid,
got: Uuid,
},
SeqGap {
expected: u64,
got: u64,
},
DuplicateEventId(Uuid),
RunIdMismatch {
seq: u64,
expected: Uuid,
got: Uuid,
},
CheckpointNotReached {
up_to_seq: u64,
last_seq: u64,
},
HashChainVerificationRequiresFileReplay,
}Expand description
Errors that can occur during journal replay.
Variants§
Journal(JournalError)
Error reading from the journal.
Reduce(ReduceError)
Reducer returned an error.
MissingRunMeta
First event is not RunMeta (required by §9.2).
IncompleteRunMeta(&'static str)
RunMeta event is present but missing required fields.
UnsupportedSchema(u16)
Journal schema version is not supported.
CheckpointHashMismatch
Checkpoint state hash does not match replayed state.
CheckpointRunIdMismatch
Checkpoint run_id does not match journal RunMeta run_id.
SeqGap
Non-contiguous sequence number during replay.
DuplicateEventId(Uuid)
Duplicate event_id during replay.
RunIdMismatch
Event run_id does not match the run_id established by RunMeta.
CheckpointNotReached
Checkpoint boundary was never reached in the event stream.
HashChainVerificationRequiresFileReplay
Hash-chain verification requires file-based replay where encoding is known.
Trait Implementations§
§impl Debug for ReplayError
impl Debug for ReplayError
§impl Display for ReplayError
impl Display for ReplayError
§impl Error for ReplayError
impl Error for ReplayError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<JournalError> for ReplayError
impl From<JournalError> for ReplayError
§fn from(source: JournalError) -> Self
fn from(source: JournalError) -> Self
Converts to this type from the input type.
§impl From<ReduceError> for ReplayError
impl From<ReduceError> for ReplayError
§fn from(source: ReduceError) -> Self
fn from(source: ReduceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplayError
impl !RefUnwindSafe for ReplayError
impl Send for ReplayError
impl Sync for ReplayError
impl Unpin for ReplayError
impl UnsafeUnpin for ReplayError
impl !UnwindSafe for ReplayError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more