pub enum WalHeaderError {
Missing,
Truncated {
needed: usize,
available: usize,
},
WrongMagic {
expected: [u8; 8],
actual: [u8; 8],
},
WrongFamily {
expected: u16,
actual: u16,
},
UnsupportedVersion {
family: u16,
version: u16,
minimum: u16,
maximum: u16,
},
InvalidHeaderLength {
expected: u64,
actual: u64,
},
NonZeroFileLength {
actual: u64,
},
InvalidSharedHeader {
check: FormatCheck,
},
}Expand description
Specific failure found before WAL record replay begins.
Variants§
Missing
No file header bytes were present.
Truncated
Some, but not all, complete WAL header bytes were present.
Fields
WrongMagic
The permanent eight-byte magic did not match.
Fields
WrongFamily
The file declares a persisted family other than WAL.
Fields
UnsupportedVersion
The WAL version is outside the registry’s accepted range.
Fields
InvalidHeaderLength
The shared header width is not exactly the v1 WAL header width.
NonZeroFileLength
The append-only WAL declared a non-zero immutable file length.
The shared decoder rejected a check that WAL-specific mapping did not expect.
Trait Implementations§
Source§impl Clone for WalHeaderError
impl Clone for WalHeaderError
impl Copy for WalHeaderError
Source§impl Debug for WalHeaderError
impl Debug for WalHeaderError
Source§impl Display for WalHeaderError
impl Display for WalHeaderError
impl Eq for WalHeaderError
Source§impl Error for WalHeaderError
impl Error for WalHeaderError
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 WalHeaderError
impl PartialEq for WalHeaderError
impl StructuralPartialEq for WalHeaderError
Auto Trait Implementations§
impl Freeze for WalHeaderError
impl RefUnwindSafe for WalHeaderError
impl Send for WalHeaderError
impl Sync for WalHeaderError
impl Unpin for WalHeaderError
impl UnsafeUnpin for WalHeaderError
impl UnwindSafe for WalHeaderError
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