pub enum WalCorruptionReasonCode {
IncompleteHeader,
IncompletePayload,
UnsupportedVersion,
DecodeFailure,
CrcMismatch,
}Expand description
Stable, machine-readable corruption reason codes for WAL tail validation.
Variants§
IncompleteHeader
The WAL ended before a complete record header could be read.
IncompletePayload
The WAL ended before all bytes declared by the length frame were present.
UnsupportedVersion
The framed record declares an unsupported WAL version.
DecodeFailure
A complete framed record failed to decode as a valid WalEvent.
CrcMismatch
The CRC-32 checksum in the header does not match the payload.
Trait Implementations§
Source§impl Clone for WalCorruptionReasonCode
impl Clone for WalCorruptionReasonCode
Source§fn clone(&self) -> WalCorruptionReasonCode
fn clone(&self) -> WalCorruptionReasonCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalCorruptionReasonCode
impl Debug for WalCorruptionReasonCode
Source§impl Display for WalCorruptionReasonCode
impl Display for WalCorruptionReasonCode
Source§impl PartialEq for WalCorruptionReasonCode
impl PartialEq for WalCorruptionReasonCode
impl Copy for WalCorruptionReasonCode
impl Eq for WalCorruptionReasonCode
impl StructuralPartialEq for WalCorruptionReasonCode
Auto Trait Implementations§
impl Freeze for WalCorruptionReasonCode
impl RefUnwindSafe for WalCorruptionReasonCode
impl Send for WalCorruptionReasonCode
impl Sync for WalCorruptionReasonCode
impl Unpin for WalCorruptionReasonCode
impl UnsafeUnpin for WalCorruptionReasonCode
impl UnwindSafe for WalCorruptionReasonCode
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