Enum AesVendorVersion

#[repr(u16)]
pub enum AesVendorVersion

The encryption specification used to encrypt a file with AES.

According to the specification AE-2 does not make use of the CRC check.

Variants

Ae1 = 0x0001

Ae1 version

Ae2 = 0x0002

Ae2 version

Implementations

impl AesVendorVersion

const fn as_u16(self) -> u16

As u16

const fn is_ae2_encrypted(&self) -> bool

Returns true if the data is encrypted using AE2.

Trait Implementations

impl Clone for AesVendorVersion

fn clone(&self) -> Self

impl Copy for AesVendorVersion

impl Debug for AesVendorVersion

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

impl Eq for AesVendorVersion

impl PartialEq for AesVendorVersion

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

impl StructuralPartialEq for AesVendorVersion

impl TryFrom<u16> for AesVendorVersion

type Error = &'static str;
fn try_from(value: u16) -> Result<Self, Self::Error>

Auto Trait Implementations

impl Freeze for AesVendorVersion

impl RefUnwindSafe for AesVendorVersion

impl Send for AesVendorVersion

impl Sync for AesVendorVersion

impl Unpin for AesVendorVersion

impl UnsafeUnpin for AesVendorVersion

impl UnwindSafe for AesVendorVersion

Blanket Implementations

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

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

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

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

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

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

impl<T> From<T> for AesVendorVersion

impl<T> Same for AesVendorVersion

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

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

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

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