Struct age::decryptor::RecipientsDecryptor
source · [−]pub struct RecipientsDecryptor<R>(_);
Expand description
Decryptor for an age file encrypted to a list of recipients.
Implementations
sourceimpl<R: Read> RecipientsDecryptor<R>
impl<R: Read> RecipientsDecryptor<R>
sourcepub fn decrypt<'a>(
self,
identities: impl Iterator<Item = &'a dyn Identity>
) -> Result<StreamReader<R>, DecryptError>
pub fn decrypt<'a>(
self,
identities: impl Iterator<Item = &'a dyn Identity>
) -> Result<StreamReader<R>, DecryptError>
Attempts to decrypt the age file.
If successful, returns a reader that will provide the plaintext.
sourceimpl<R: AsyncRead + Unpin> RecipientsDecryptor<R>
impl<R: AsyncRead + Unpin> RecipientsDecryptor<R>
sourcepub fn decrypt_async<'a>(
self,
identities: impl Iterator<Item = &'a dyn Identity>
) -> Result<StreamReader<R>, DecryptError>
Available on crate feature async
only.
pub fn decrypt_async<'a>(
self,
identities: impl Iterator<Item = &'a dyn Identity>
) -> Result<StreamReader<R>, DecryptError>
async
only.Attempts to decrypt the age file.
If successful, returns a reader that will provide the plaintext.
Trait Implementations
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 RecipientsDecryptor<R> where
R: RefUnwindSafe,
impl<R> Send for RecipientsDecryptor<R> where
R: Send,
impl<R> Sync for RecipientsDecryptor<R> where
R: Sync,
impl<R> Unpin for RecipientsDecryptor<R> where
R: Unpin,
impl<R> UnwindSafe for RecipientsDecryptor<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