Struct pgp::types::EncryptedSecretParams [−][src]
pub struct EncryptedSecretParams { /* fields omitted */ }
Implementations
pub fn new(
data: Vec<u8>,
iv: Vec<u8>,
alg: SymmetricKeyAlgorithm,
s2k: StringToKey,
id: u8
) -> Self
pub fn unlock<F>(
&self,
pw: F,
alg: PublicKeyAlgorithm
) -> Result<PlainSecretParams> where
F: FnOnce() -> String,
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EncryptedSecretParams
impl Send for EncryptedSecretParams
impl Sync for EncryptedSecretParams
impl Unpin for EncryptedSecretParams
impl UnwindSafe for EncryptedSecretParams
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self