[−][src]Enum rc_zip::FormatError
Specific zip format errors, mostly due to invalid zip archives but that could also stem from implementation shortcomings.
Variants
The end of central directory record was not found.
This usually indicates that the file being read is not a zip archive.
The zip64 end of central directory record could not be parsed.
This is only returned when a zip64 end of central directory locator was found, so the archive should be zip64, but isn't.
Corrupted/partial zip file: the offset we found for the central directory points outside of the current file.
The central record is corrupted somewhat.
This can happen when the end of central directory record advertises a certain number of files, but we weren't able to read the same number of central directory headers.
An extra field (that we support) was not decoded correctly.
This can indicate an invalid zip archive, or an implementation error in this crate.
End of central directory record claims an impossible number of file.
Each entry takes a minimum amount of size, so if the overall archive size is smaller than claimed_records_count * minimum_entry_size, we know it's not a valid zip file.
The local file header (before the file data) could not be parsed correctly.
The data descriptor (after the file data) could not be parsed correctly.
The uncompressed size didn't match
The CRC-32 checksum didn't match.
Trait Implementations
impl Debug for FormatError
[src]
impl From<FormatError> for Error
[src]
fn from(e: FormatError) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnwindSafe for FormatError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,