#[non_exhaustive]pub enum IndexPolicyViolation {
ExtraField {
identifier: ExtraHeaderId,
},
ArchiveComment {
rule: CommentRule,
},
MemberComment {
rule: CommentRule,
},
RedundantZip64Sizes,
StoredDataDescriptor,
EmptyDeflateStream,
IncompatibleExtractionVersion {
declared: u16,
minimum: u16,
},
AmbiguousSymlinkMode,
BackslashInName,
}Expand description
A supported ZIP feature excluded by the selected IndexPolicy.
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.
ExtraField
A known member extra field was excluded by the extra-field policy.
Fields
§
identifier: ExtraHeaderIdThe supported extra-field identifier from the member header.
ArchiveComment
The archive comment did not meet the configured comment rule.
Fields
§
rule: CommentRuleThe rule for the end-record comment.
MemberComment
A member comment did not meet the configured comment rule.
Fields
§
rule: CommentRuleThe rule for central-directory comments.
RedundantZip64Sizes
A local ZIP64 extra repeats both 32-bit sizes.
StoredDataDescriptor
A Stored member uses a data descriptor.
EmptyDeflateStream
A DEFLATE member with zero uncompressed size declares compressed bytes.
IncompatibleExtractionVersion
A member header declares an extraction version below the required minimum.
Fields
AmbiguousSymlinkMode
A non-Unix creator supplied Unix symlink mode bits.
BackslashInName
A member name contains a literal backslash.
Trait Implementations§
Source§impl Clone for IndexPolicyViolation
impl Clone for IndexPolicyViolation
impl Copy for IndexPolicyViolation
Source§impl Debug for IndexPolicyViolation
impl Debug for IndexPolicyViolation
Source§impl Display for IndexPolicyViolation
impl Display for IndexPolicyViolation
impl Eq for IndexPolicyViolation
Source§impl Error for IndexPolicyViolation
impl Error for IndexPolicyViolation
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 IndexPolicyViolation
impl PartialEq for IndexPolicyViolation
impl StructuralPartialEq for IndexPolicyViolation
Auto Trait Implementations§
impl Forget for IndexPolicyViolation
impl Freeze for IndexPolicyViolation
impl Move for IndexPolicyViolation
impl RefUnwindSafe for IndexPolicyViolation
impl Send for IndexPolicyViolation
impl Sync for IndexPolicyViolation
impl Unpin for IndexPolicyViolation
impl UnsafeUnpin for IndexPolicyViolation
impl UnwindSafe for IndexPolicyViolation
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