pub enum EncryptionMethod {
Aes256Zip,
Aes256Flat,
}Expand description
Encryption method
Variants§
Aes256Zip
Compress data, then encrypt it with AES-256-CBC
Aes256Flat
Just encrypt the data with AES-256-CBC
Implementations§
Source§impl EncryptionMethod
impl EncryptionMethod
Sourcepub fn to_u16(&self) -> u16
pub fn to_u16(&self) -> u16
Turns the encryption method into its corresponding numeric representation
Sourcepub fn from_u16(v: u16) -> Result<EncryptionMethod, EncryptionMethodParseError>
pub fn from_u16(v: u16) -> Result<EncryptionMethod, EncryptionMethodParseError>
Returns the corresponding method to its numeric representation If the number does not correspond to any method, it will return an error instead
Trait Implementations§
Source§impl Clone for EncryptionMethod
impl Clone for EncryptionMethod
Source§fn clone(&self) -> EncryptionMethod
fn clone(&self) -> EncryptionMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncryptionMethod
impl Debug for EncryptionMethod
Source§impl PartialEq for EncryptionMethod
impl PartialEq for EncryptionMethod
impl Copy for EncryptionMethod
impl StructuralPartialEq for EncryptionMethod
Auto Trait Implementations§
impl Freeze for EncryptionMethod
impl RefUnwindSafe for EncryptionMethod
impl Send for EncryptionMethod
impl Sync for EncryptionMethod
impl Unpin for EncryptionMethod
impl UnwindSafe for EncryptionMethod
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