Enum JournalError
#[non_exhaustive]
pub enum JournalError {
Show 15 variants
Io(Error),
UnsupportedVersion {
found: u16,
supported: u16,
},
BadMagic,
UnsupportedFrameFormat {
found: u16,
supported: u16,
},
UnsupportedFlags {
found: u16,
supported: u16,
},
SequenceGap {
expected: u64,
found: u64,
},
SequenceExhausted {
seq: u64,
},
FrameTooLarge {
len: u32,
max: u32,
},
CorruptFrame {
seq: u64,
},
ChecksumMismatch {
seq: u64,
stored: u32,
computed: u32,
},
InvalidReaderPosition {
reason: &'static str,
},
EmptyPayloadKind,
PayloadKindTooLong {
len: usize,
max: usize,
},
RecordTooLong {
encoded_len: usize,
},
Malformed {
reason: &'static str,
},
}
This enum is marked as non-exhaustive
👎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)