#[non_exhaustive]pub enum Cipher {
Identity,
Rc4,
Aes128,
Aes256,
}Expand description
A crypt filter method (/CFM, ISO 32000-2 Table 25) or the pre-V4 implicit cipher.
Added in 0.2.0.
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.
Identity
/Identity (or /CFM /None): the data is not encrypted.
Rc4
RC4 with a per-object key (/V2, and every V1/V2 handler). Deprecated.
Aes128
AES-128-CBC with a per-object key (/AESV2). Deprecated in PDF 2.0.
Aes256
AES-256-CBC with the file key (/AESV3, V5).
Implementations§
Trait Implementations§
impl Copy for Cipher
impl Eq for Cipher
impl StructuralPartialEq for Cipher
Auto Trait Implementations§
impl Forget for Cipher
impl Freeze for Cipher
impl Move for Cipher
impl RefUnwindSafe for Cipher
impl Send for Cipher
impl Sync for Cipher
impl Unpin for Cipher
impl UnsafeUnpin for Cipher
impl UnwindSafe for Cipher
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