pub enum PrefetchError {
TooShort,
BadSignature,
Decompress(Error),
UnsupportedVersion(u32),
TruncatedRecord,
}Expand description
Errors decoding a prefetch file.
Variants§
TooShort
Input is shorter than the smallest valid header.
BadSignature
Not a recognized prefetch container (MAM/Xpress-Huffman or raw SCCA).
Decompress(Error)
The MAM/Xpress-Huffman payload failed to decompress.
UnsupportedVersion(u32)
SCCA format version not supported by this parser (the u32 is the version
found). Win10/11 (30/31) are supported; XP/Vista/7/8.1 (17/23/26) are not
yet — their FileInformation block has a different layout.
TruncatedRecord
An offset/length field in the SCCA payload pointed past the buffer.
Trait Implementations§
Source§impl Debug for PrefetchError
impl Debug for PrefetchError
impl Eq for PrefetchError
Source§impl PartialEq for PrefetchError
impl PartialEq for PrefetchError
Source§fn eq(&self, other: &PrefetchError) -> bool
fn eq(&self, other: &PrefetchError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrefetchError
Auto Trait Implementations§
impl Freeze for PrefetchError
impl RefUnwindSafe for PrefetchError
impl Send for PrefetchError
impl Sync for PrefetchError
impl Unpin for PrefetchError
impl UnsafeUnpin for PrefetchError
impl UnwindSafe for PrefetchError
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