pub enum ParxError {
Show 14 variants
InvalidMagic([u8; 4]),
UnsupportedVersion {
major: u8,
minor: u8,
},
FileTooSmall {
size: usize,
minimum: usize,
},
ManifestChecksumMismatch {
expected: u32,
actual: u32,
},
FooterChecksumMismatch,
PageIndexChecksumMismatch,
ManifestDecode(DecodeError),
InvalidPayloadBounds {
offset: u64,
length: u64,
file_size: u64,
},
InvalidFormat(String),
CompressionError(String),
InvalidBundleMagic([u8; 4]),
InvalidParquetMagic([u8; 4]),
InvalidParquetFooterLength {
footer_len: u64,
file_size: u64,
},
Io(Error),
}Expand description
Errors that can occur when reading or writing PARX files.
Variants§
InvalidMagic([u8; 4])
Invalid magic bytes in header or trailer.
UnsupportedVersion
Unsupported PARX format version.
FileTooSmall
File is too small to contain valid PARX data.
ManifestChecksumMismatch
CRC32C checksum mismatch for manifest.
CRC32C checksum mismatch for footer payload.
PageIndexChecksumMismatch
ManifestDecode(DecodeError)
Failed to decode protobuf manifest.
InvalidPayloadBounds
Invalid offset or length in manifest.
InvalidFormat(String)
Invalid format (JSON parsing, etc).
CompressionError(String)
Compression or decompression error.
InvalidBundleMagic([u8; 4])
Bundle-specific errors.
InvalidParquetMagic([u8; 4])
Invalid Parquet file magic bytes.
Parquet footer length exceeds file size.
Io(Error)
I/O error (e.g., reading a file from disk).
Trait Implementations§
Source§impl Error for ParxError
impl Error for ParxError
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 From<DecodeError> for ParxError
impl From<DecodeError> for ParxError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParxError
impl !RefUnwindSafe for ParxError
impl Send for ParxError
impl Sync for ParxError
impl Unpin for ParxError
impl UnsafeUnpin for ParxError
impl !UnwindSafe for ParxError
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