Enum encryptfile::PasswordType
[−]
[src]
pub enum PasswordType { Unknown, Text(String, PasswordKeyGenMethod), Func(Rc<Box<Fn() -> PwKeyArray>>), }
Specifies the encryption password.
Variants
Unknown
Text(String, PasswordKeyGenMethod)
Use the specified text string and PasswordKeyGenMethod.
Leading/trailing whitespace is not trimmed on the string. Consider specifying
salt via Config.salt()
.
Func(Rc<Box<Fn() -> PwKeyArray>>)
Use the specified function to provide the key.
Trait Implementations
impl Clone for PasswordType
[src]
fn clone(&self) -> PasswordType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more