pub enum DatabaseHeaderError {
InvalidMagic,
InvalidPageSize {
raw: u16,
},
InvalidPayloadFractions {
max: u8,
min: u8,
leaf: u8,
},
UsableSizeTooSmall {
page_size: u32,
reserved_per_page: u8,
usable_size: u32,
},
UnsupportedReadVersion {
read_version: u8,
max_supported: u8,
},
InvalidTextEncoding {
raw: u32,
},
InvalidSchemaFormat {
raw: u32,
},
}Expand description
Errors that can occur while parsing or validating the 100-byte database header.
Variants§
InvalidMagic
Magic string mismatch at bytes 0..16.
InvalidPageSize
Page size encoding was invalid.
InvalidPayloadFractions
Embedded payload fractions (bytes 21..24) are invalid.
UsableSizeTooSmall
The effective usable page size would be below the minimum allowed by SQLite (480).
UnsupportedReadVersion
Read file format version is too new to be understood.
InvalidTextEncoding
Text encoding field was not 1/2/3.
InvalidSchemaFormat
Schema format number is unsupported.
Trait Implementations§
Source§impl Clone for DatabaseHeaderError
impl Clone for DatabaseHeaderError
Source§fn clone(&self) -> DatabaseHeaderError
fn clone(&self) -> DatabaseHeaderError
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 DatabaseHeaderError
impl Debug for DatabaseHeaderError
Source§impl Display for DatabaseHeaderError
impl Display for DatabaseHeaderError
Source§impl Error for DatabaseHeaderError
impl Error for DatabaseHeaderError
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 DatabaseHeaderError
impl PartialEq for DatabaseHeaderError
impl Eq for DatabaseHeaderError
impl StructuralPartialEq for DatabaseHeaderError
Auto Trait Implementations§
impl Freeze for DatabaseHeaderError
impl RefUnwindSafe for DatabaseHeaderError
impl Send for DatabaseHeaderError
impl Sync for DatabaseHeaderError
impl Unpin for DatabaseHeaderError
impl UnsafeUnpin for DatabaseHeaderError
impl UnwindSafe for DatabaseHeaderError
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