pub enum RecordError {
HeaderTruncated {
needed: usize,
available: usize,
},
LengthOverflow {
payload_length: u32,
},
BodyTruncated {
payload_length: u32,
needed: usize,
available: usize,
},
ChecksumMismatch {
expected: u64,
actual: u64,
record_length: usize,
},
}Expand description
Specific validation failure for one WAL record.
Variants§
HeaderTruncated
The fixed length/sequence/operation header is torn.
Fields
LengthOverflow
The declared payload plus framing cannot fit usize.
BodyTruncated
The record body or checksum is torn.
Fields
ChecksumMismatch
The trailing xxh3-64 does not cover the observed record bytes.
Trait Implementations§
Source§impl Clone for RecordError
impl Clone for RecordError
impl Copy for RecordError
Source§impl Debug for RecordError
impl Debug for RecordError
Source§impl Display for RecordError
impl Display for RecordError
impl Eq for RecordError
Source§impl Error for RecordError
impl Error for RecordError
1.30.0 · Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RecordError
impl PartialEq for RecordError
impl StructuralPartialEq for RecordError
Auto Trait Implementations§
impl Freeze for RecordError
impl RefUnwindSafe for RecordError
impl Send for RecordError
impl Sync for RecordError
impl Unpin for RecordError
impl UnsafeUnpin for RecordError
impl UnwindSafe for RecordError
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