pub enum WalRecoveryError {
MissingFile,
InvalidHeader(WalHeaderError),
CorruptAt {
offset: usize,
reason: CorruptionReason,
},
}Expand description
A non-empty WAL cannot be resumed because replay did not reach a clean end.
Variants§
MissingFile
The requested WAL path did not exist and therefore cannot be resumed.
InvalidHeader(WalHeaderError)
The persisted WAL header is absent, truncated, or invalid.
CorruptAt
Record replay stopped at a typed corruption boundary.
Fields
§
reason: CorruptionReasonExact framing, checksum, or sequence failure.
Trait Implementations§
Source§impl Clone for WalRecoveryError
impl Clone for WalRecoveryError
impl Copy for WalRecoveryError
Source§impl Debug for WalRecoveryError
impl Debug for WalRecoveryError
Source§impl Display for WalRecoveryError
impl Display for WalRecoveryError
impl Eq for WalRecoveryError
Source§impl Error for WalRecoveryError
impl Error for WalRecoveryError
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 WalRecoveryError
impl PartialEq for WalRecoveryError
impl StructuralPartialEq for WalRecoveryError
Auto Trait Implementations§
impl Freeze for WalRecoveryError
impl RefUnwindSafe for WalRecoveryError
impl Send for WalRecoveryError
impl Sync for WalRecoveryError
impl Unpin for WalRecoveryError
impl UnsafeUnpin for WalRecoveryError
impl UnwindSafe for WalRecoveryError
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