#[non_exhaustive]pub enum ErrorKind {
MissingEndOfCentralDirectory,
MissingZip64EndOfCentralDirectory,
BufferTooSmall,
InvalidSignature {
expected: u32,
actual: u32,
},
InvalidChecksum {
expected: u32,
actual: u32,
},
InvalidSize {
expected: u64,
actual: u64,
},
InvalidUtf8(Utf8Error),
InvalidInput {
msg: String,
},
IO(Error),
Eof,
}
Expand description
The kind of error that occurred
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.
MissingEndOfCentralDirectory
Missing end of central directory
MissingZip64EndOfCentralDirectory
Missing zip64 end of central directory
BufferTooSmall
Buffer size too small
InvalidSignature
Invalid end of central directory signature
InvalidChecksum
Invalid inflated file crc checksum
InvalidSize
An unexpected inflated file size
InvalidUtf8(Utf8Error)
Invalid UTF-8 sequence
InvalidInput
An invalid input error with associated message
IO(Error)
An IO error
Eof
An unexpected end of file
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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