pub enum WalValidationError {
BadMagic,
PageSizeMismatch {
db: u32,
wal: u32,
},
Header(Error),
}Expand description
A WAL that cannot be admitted to the timeline at all (physical-validation hard stops). Distinct from “no committed snapshot”, which is a valid empty timeline.
Variants§
BadMagic
The -wal is shorter than its 32-byte header, or carries the wrong magic.
PageSizeMismatch
The WAL header’s page size disagrees with the DB header’s — a HARD STOP, since
every frame would be mis-sliced. db and wal are the two declared sizes.
Header(Error)
The main database header itself failed to parse.
Trait Implementations§
Source§impl Clone for WalValidationError
impl Clone for WalValidationError
Source§fn clone(&self) -> WalValidationError
fn clone(&self) -> WalValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalValidationError
impl Debug for WalValidationError
impl Eq for WalValidationError
Source§impl PartialEq for WalValidationError
impl PartialEq for WalValidationError
impl StructuralPartialEq for WalValidationError
Auto Trait Implementations§
impl Freeze for WalValidationError
impl RefUnwindSafe for WalValidationError
impl Send for WalValidationError
impl Sync for WalValidationError
impl Unpin for WalValidationError
impl UnsafeUnpin for WalValidationError
impl UnwindSafe for WalValidationError
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