#[non_exhaustive]pub enum ZipErrorKind {
FileNotFound,
InvalidFormat,
UnsupportedCompression,
DecompressError,
CrcMismatch,
IoError,
CentralDirFull,
BufferTooSmall,
FileTooLarge,
InvalidMimetype(String),
UnsupportedZip64,
}Expand description
ZIP-specific error variants
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.
FileNotFound
File not found in archive
InvalidFormat
Invalid ZIP format
UnsupportedCompression
Unsupported compression method
DecompressError
Decompression failed
CrcMismatch
CRC32 mismatch
IoError
I/O error during ZIP operations
CentralDirFull
Central directory full (exceeded max entries)
BufferTooSmall
Buffer too small for decompressed content
FileTooLarge
File exceeds maximum allowed size
InvalidMimetype(String)
Invalid or missing mimetype file
UnsupportedZip64
ZIP64 structures are present but unsupported
Trait Implementations§
Source§impl Clone for ZipErrorKind
impl Clone for ZipErrorKind
Source§fn clone(&self) -> ZipErrorKind
fn clone(&self) -> ZipErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZipErrorKind
impl Debug for ZipErrorKind
Source§impl Display for ZipErrorKind
impl Display for ZipErrorKind
Source§impl Error for ZipErrorKind
Available on crate feature std only.
impl Error for ZipErrorKind
Available on crate feature
std only.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 PartialEq for ZipErrorKind
impl PartialEq for ZipErrorKind
impl Eq for ZipErrorKind
impl StructuralPartialEq for ZipErrorKind
Auto Trait Implementations§
impl Freeze for ZipErrorKind
impl RefUnwindSafe for ZipErrorKind
impl Send for ZipErrorKind
impl Sync for ZipErrorKind
impl Unpin for ZipErrorKind
impl UnsafeUnpin for ZipErrorKind
impl UnwindSafe for ZipErrorKind
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