#[non_exhaustive]pub enum XzError {
Show 33 variants
NeedsReset,
NeedsLargerInputBuffer,
CorruptedData,
CorruptedDataInLzma,
DictionaryOverflow,
LzmaPropertiesTooLarge,
LzmaPropertiesInvalid,
LzmaPropertiesMissing,
LzmaDictionaryResetExcepted,
MoreDataInBlockBodyThanHeaderIndicated,
LessDataInBlockBodyThanHeaderIndicated,
CorruptedDataInBlockIndex,
BlockHeaderTooSmall,
CorruptedCompressedLengthVliInBlockHeader,
CorruptedUncompressedLengthVliInBlockHeader,
UnsupportedStreamHeaderOption,
UnsupportedBlockHeaderOption,
UnsupportedLzmaProperties(u32),
DictionaryTooLarge(u64),
UnsupportedCheckType(u32),
BcjFilterWithOffsetNotSupported,
UnsupportedBcjFilter(u32),
ContentCrc32Mismatch(u32, u32),
IndexCrc32Mismatch(u32, u32),
ContentCrc64Mismatch(u64, u64),
ContentSha256Mismatch([u8; 32], [u8; 32]),
StreamHeaderMagicNumberMismatch,
StreamHeaderCrc32Mismatch(u32, u32),
BlockHeaderCrc32Mismatch(u32, u32),
FooterMagicNumberMismatch,
FooterCheckTypeMismatch(u32, XzCheckType),
FooterCrc32Mismatch(u32, u32),
FooterDecoderIndexMismatch(u64, u64),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NeedsReset
NeedsLargerInputBuffer
CorruptedData
CorruptedDataInLzma
DictionaryOverflow
LzmaPropertiesTooLarge
LzmaPropertiesInvalid
LzmaPropertiesMissing
LzmaDictionaryResetExcepted
MoreDataInBlockBodyThanHeaderIndicated
LessDataInBlockBodyThanHeaderIndicated
CorruptedDataInBlockIndex
BlockHeaderTooSmall
CorruptedCompressedLengthVliInBlockHeader
CorruptedUncompressedLengthVliInBlockHeader
UnsupportedStreamHeaderOption
UnsupportedBlockHeaderOption
UnsupportedLzmaProperties(u32)
DictionaryTooLarge(u64)
UnsupportedCheckType(u32)
BcjFilterWithOffsetNotSupported
UnsupportedBcjFilter(u32)
ContentCrc32Mismatch(u32, u32)
IndexCrc32Mismatch(u32, u32)
ContentCrc64Mismatch(u64, u64)
ContentSha256Mismatch([u8; 32], [u8; 32])
StreamHeaderMagicNumberMismatch
StreamHeaderCrc32Mismatch(u32, u32)
BlockHeaderCrc32Mismatch(u32, u32)
Trait Implementations§
Source§impl Error for XzError
impl Error for XzError
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 Ord for XzError
impl Ord for XzError
Source§impl PartialOrd for XzError
impl PartialOrd for XzError
impl Eq for XzError
impl StructuralPartialEq for XzError
Auto Trait Implementations§
impl Freeze for XzError
impl RefUnwindSafe for XzError
impl Send for XzError
impl Sync for XzError
impl Unpin for XzError
impl UnwindSafe for XzError
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