Enum ZipFlags

#[repr(u16)]
#[non_exhaustive]
pub enum ZipFlags

Zip flags Stored as Little endian

Variants

Encrypted = 0b0000_0000_0000_0001

If set, indicates that the file is encrypted.

CompressionSetting = 0b0000_0000_0000_0010

Compression setting

CompressionSetting2 = 0b0000_0000_0000_0100

Compression setting 2

UsingDataDescriptor = 0b0000_0000_0000_1000

If this bit is set, the fields crc-32, compressed size and uncompressed size are set to zero in the local header. The correct values are put in the data descriptor immediately following the compressed data.

ReservedEnhancedDeflating = 0b0000_0000_0001_0000

Reserved for use with method 8, for enhanced deflating.

CompressedPatchedData = 0b0000_0000_0010_0000

If this bit is set, this indicates that the file is compressed patched data.

StrongEncryption = 0b0000_0000_0100_0000

Strong encryption. If this bit is set, you MUST set the version needed to extract value to at least 50 and you MUST also set bit 0. If AES encryption is used, the version needed to extract value MUST be at least 51.

LanguageEncoding = 0b0000_1000_0000_0000

Language encoding flag (EFS). If this bit is set, the filename and comment fields for this file MUST be encoded using UTF-8.

ReservedEnhancedCompression = 0b0001_0000_0000_0000

Reserved by PKWARE for enhanced compression.

Masked = 0b0010_0000_0000_0000

Set when encrypting the Central Directory to indicate selected data values in the Local Header are masked to hide their actual values.

ReservedAlternateStream = 0b0100_0000_0000_0000

Reserved by PKWARE for alternate streams.

Reserved = 0b1000_0000_0000_0000

Reserved by PKWARE.

Trait Implementations

impl Clone for ZipFlags

fn clone(&self) -> Self

impl Copy for ZipFlags

impl Debug for ZipFlags

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for ZipFlags

impl PartialEq for ZipFlags

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for ZipFlags

Auto Trait Implementations

impl Freeze for ZipFlags

impl RefUnwindSafe for ZipFlags

impl Send for ZipFlags

impl Sync for ZipFlags

impl Unpin for ZipFlags

impl UnsafeUnpin for ZipFlags

impl UnwindSafe for ZipFlags

Blanket Implementations

impl<Q, K> Equivalent<K> for ZipFlags where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

impl<Q, K> Equivalent<K> for ZipFlags where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

impl<T> Any for ZipFlags where T: 'static + ?Sized,

impl<T> Borrow<T> for ZipFlags where T: ?Sized,

impl<T> BorrowMut<T> for ZipFlags where T: ?Sized,

impl<T> CloneToUninit for ZipFlags where T: Clone,

impl<T> From<T> for ZipFlags

impl<T> Same for ZipFlags

impl<T> ToOwned for ZipFlags where T: Clone,

impl<T, U> Into<U> for ZipFlags where U: From<T>,

impl<T, U> TryFrom<U> for ZipFlags where U: Into<T>,

impl<T, U> TryInto<U> for ZipFlags where U: TryFrom<T>,