pub enum Decryptor<R> {
Recipients(RecipientsDecryptor<R>),
Passphrase(PassphraseDecryptor<R>),
}
Expand description
Decryptor for an age file.
Variants
Recipients(RecipientsDecryptor<R>)
Decryption with a list of identities.
Passphrase(PassphraseDecryptor<R>)
Decryption with a passphrase.
Implementations
Trait Implementations
sourceimpl<R> From<PassphraseDecryptor<R>> for Decryptor<R>
impl<R> From<PassphraseDecryptor<R>> for Decryptor<R>
sourcefn from(decryptor: PassphraseDecryptor<R>) -> Self
fn from(decryptor: PassphraseDecryptor<R>) -> Self
Converts to this type from the input type.
sourceimpl<R> From<RecipientsDecryptor<R>> for Decryptor<R>
impl<R> From<RecipientsDecryptor<R>> for Decryptor<R>
sourcefn from(decryptor: RecipientsDecryptor<R>) -> Self
fn from(decryptor: RecipientsDecryptor<R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<R> RefUnwindSafe for Decryptor<R> where
R: RefUnwindSafe,
impl<R> Send for Decryptor<R> where
R: Send,
impl<R> Sync for Decryptor<R> where
R: Sync,
impl<R> Unpin for Decryptor<R> where
R: Unpin,
impl<R> UnwindSafe for Decryptor<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more