Enum encryptfile::PasswordType [] [src]

pub enum PasswordType {
    Unknown,
    Text(String, PasswordKeyGenMethod),
    Func(Rc<Box<Fn() -> PwKeyArray>>),
}

Specifies the encryption password.

Variants

Unknown
Text

Use the specified text string and PasswordKeyGenMethod. Leading/trailing whitespace is not trimmed on the string. Consider specifying salt via Config.salt().

Func

Use the specified function to provide the key.

Trait Implementations

Derived Implementations

impl Clone for PasswordType

fn clone(&self) -> PasswordType

fn clone_from(&mut self, source: &Self)