#[non_exhaustive]pub enum ZipError {
Show 25 variants
FeatureNotSupported(&'static str),
CompressionNotSupported(u16),
AttributeCompatibilityNotSupported(u16),
TargetZip64NotSupported,
Zip64Needed(Zip64ErrorCase),
EOFNotReached,
ExtraFieldTooLarge,
CommentTooLarge,
FileNameTooLarge,
StringNotUtf8,
UnableToLocateEOCDR,
InvalidExtraFieldHeader(u16),
Zip64ExtendedFieldIncomplete,
DuplicateExtraFieldHeader(u16),
UpstreamReadError(Error),
CRC32CheckError,
EntryIndexOutOfBounds,
UnexpectedHeaderError(u32, u32),
InfoZipUnicodeCommentFieldIncomplete,
InfoZipUnicodePathFieldIncomplete,
InvalidEndOfCentralDirectoryOffset(u64, u64),
InvalidCentralDirectoryEntryCount {
entries: u64,
},
MissingZip64EndOfCentralDirectoryLocator,
InvalidZip64EndOfCentralDirectoryLocatorOffset(u64, u64),
Zip64ExtendedInformationFieldTooLong {
expected: usize,
actual: usize,
},
}Expand description
An enum of possible errors and their descriptions.
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.
FeatureNotSupported(&'static str)
CompressionNotSupported(u16)
AttributeCompatibilityNotSupported(u16)
TargetZip64NotSupported
Zip64Needed(Zip64ErrorCase)
EOFNotReached
ExtraFieldTooLarge
CommentTooLarge
FileNameTooLarge
StringNotUtf8
UnableToLocateEOCDR
InvalidExtraFieldHeader(u16)
Zip64ExtendedFieldIncomplete
DuplicateExtraFieldHeader(u16)
UpstreamReadError(Error)
CRC32CheckError
EntryIndexOutOfBounds
UnexpectedHeaderError(u32, u32)
InfoZipUnicodeCommentFieldIncomplete
InfoZipUnicodePathFieldIncomplete
InvalidEndOfCentralDirectoryOffset(u64, u64)
InvalidCentralDirectoryEntryCount
MissingZip64EndOfCentralDirectoryLocator
InvalidZip64EndOfCentralDirectoryLocatorOffset(u64, u64)
Zip64ExtendedInformationFieldTooLong
Trait Implementations§
Source§impl Error for ZipError
impl Error for ZipError
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()
Auto Trait Implementations§
impl Freeze for ZipError
impl !RefUnwindSafe for ZipError
impl Send for ZipError
impl Sync for ZipError
impl Unpin for ZipError
impl UnsafeUnpin for ZipError
impl !UnwindSafe for ZipError
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