#[non_exhaustive]pub enum ZipError {
Show 21 variants
Io(Error),
Zip(ZipError),
MissingEndOfCentralDirectory,
Zip64,
MultiDisk,
InconsistentCentralDirectory {
offset: u64,
size: u64,
eocd: u64,
},
AmbiguousCentralDirectory,
DataBeforeEntries {
offset: u64,
},
BadLocalHeader {
index: usize,
},
EntryOutOfBounds {
index: usize,
},
SigningBlockSizeMismatch {
leading: u64,
trailing: u64,
},
SigningBlockOutOfBounds {
size: u64,
},
NonUtf8Name {
index: usize,
},
UnsafeName {
name: String,
source: ArchivePathError,
},
MissingEntry {
name: String,
},
EntryTooLarge {
name: String,
limit: u64,
},
DuplicateEntry {
name: String,
},
DuplicateNames {
listed: u16,
distinct: usize,
},
EncryptedEntry {
name: String,
},
LimitExceeded {
limit: ZipLimit,
},
SourceChanged {
name: String,
expected: u64,
actual: u64,
},
}Expand description
A malformed, unsupported, or unrepresentable ZIP archive.
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.
Io(Error)
Zip(ZipError)
MissingEndOfCentralDirectory
Zip64
MultiDisk
InconsistentCentralDirectory
AmbiguousCentralDirectory
DataBeforeEntries
BadLocalHeader
EntryOutOfBounds
SigningBlockSizeMismatch
SigningBlockOutOfBounds
NonUtf8Name
UnsafeName
MissingEntry
EntryTooLarge
DuplicateEntry
DuplicateNames
EncryptedEntry
LimitExceeded
SourceChanged
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 !RefUnwindSafe for ZipError
impl !UnwindSafe for ZipError
impl Freeze for ZipError
impl Send for ZipError
impl Sync for ZipError
impl Unpin for ZipError
impl UnsafeUnpin for ZipError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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