pub enum ZipError {
InvalidHeader,
DecompressionError,
EOF,
FileNotFound,
NotFoundEOCD,
ParseError,
}Expand description
Represents all possible errors that can occur while parsing a ZIP archive.
Variants§
InvalidHeader
The provided file does not have a valid ZIP header.
DecompressionError
An error occurred while decompressing a file entry.
EOF
Unexpected end-of-file (EOF) was reached while reading the ZIP archive.
FileNotFound
The requested file does not exist inside the ZIP archive.
NotFoundEOCD
The End of Central Directory (EOCD) record could not be found, preventing operations.
ParseError
A general error occurred while parsing the ZIP archive.
Trait Implementations§
Source§impl Error for ZipError
impl Error for ZipError
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 From<ZipError> for CertificateError
impl From<ZipError> for CertificateError
Source§fn from(source: ZipError) -> CertificateError
fn from(source: ZipError) -> CertificateError
Converts to this type from the input type.
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