pub enum WalDecodeError {
Truncated {
expected: usize,
actual: usize,
},
BadMagic,
UnsupportedVersion(u32),
ChecksumMismatch,
OversizedPayload(u32),
}Expand description
Error returned when a logical WAL record fails to decode or verify.
Variants§
Truncated
The record is shorter than its header or declared payload.
Fields
BadMagic
The record does not begin with the expected magic.
UnsupportedVersion(u32)
The record uses a framing version this build does not support.
ChecksumMismatch
The record’s CRC does not match its contents.
OversizedPayload(u32)
The declared payload exceeds the 64 MiB record ceiling.
Trait Implementations§
Source§impl Debug for WalDecodeError
impl Debug for WalDecodeError
Source§impl Display for WalDecodeError
impl Display for WalDecodeError
Source§impl Error for WalDecodeError
impl Error for WalDecodeError
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()
Auto Trait Implementations§
impl Freeze for WalDecodeError
impl RefUnwindSafe for WalDecodeError
impl Send for WalDecodeError
impl Sync for WalDecodeError
impl Unpin for WalDecodeError
impl UnsafeUnpin for WalDecodeError
impl UnwindSafe for WalDecodeError
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