#[non_exhaustive]pub enum LayoutFault {
NoEndRecord,
MultiDisk,
CentralDirectory,
LocalHeader,
Overlap,
Truncated,
}Expand description
What is wrong with the records of a ZIP file that the writer reads.
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.
NoEndRecord
The file has no end of central directory record whose comment ends the file.
MultiDisk
The file spans more than one disk.
CentralDirectory
The central directory is not where the end record says, or a record of it does not read.
LocalHeader
A local file header is not where its central record says, or its entry does not fit.
Overlap
Two entries’ local records overlap.
Truncated
A record ends before its fields.
Trait Implementations§
Source§impl Clone for LayoutFault
impl Clone for LayoutFault
impl Copy for LayoutFault
Source§impl Debug for LayoutFault
impl Debug for LayoutFault
Source§impl Display for LayoutFault
impl Display for LayoutFault
impl Eq for LayoutFault
Source§impl PartialEq for LayoutFault
impl PartialEq for LayoutFault
impl StructuralPartialEq for LayoutFault
Auto Trait Implementations§
impl Forget for LayoutFault
impl Freeze for LayoutFault
impl Move for LayoutFault
impl RefUnwindSafe for LayoutFault
impl Send for LayoutFault
impl Sync for LayoutFault
impl Unpin for LayoutFault
impl UnsafeUnpin for LayoutFault
impl UnwindSafe for LayoutFault
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.