Enum JournalError
pub enum JournalError {
Show 15 variants
Io(Error),
Serialize(String),
Deserialize(String),
SeqGap {
expected: u64,
got: u64,
},
DuplicateEventId(Uuid),
TruncatedRecord,
UnsupportedSchemaVersion(u16),
PayloadTooLarge {
size: usize,
},
NoValidFrames {
file_len: u64,
},
RunIdMismatch {
expected: Uuid,
got: Uuid,
},
InconsistentRunId {
seq: u64,
expected: Uuid,
got: Uuid,
},
BackgroundWriterSend(String),
BackgroundWriterJoin(String),
RecordHashMismatch {
seq: u64,
expected: String,
computed: String,
},
HashChainBreak {
seq: u64,
prev_hash: Option<String>,
expected: Option<String>,
},
}
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)