Struct age::decryptor::RecipientsDecryptor[][src]

pub struct RecipientsDecryptor<R>(_);

Decryptor for an age file encrypted to a list of recipients.

Implementations

impl<R: Read> RecipientsDecryptor<R>[src]

pub fn decrypt(
    self,
    identities: impl Iterator<Item = Box<dyn Identity>>
) -> Result<StreamReader<R>, DecryptError>
[src]

Attempts to decrypt the age file.

If successful, returns a reader that will provide the plaintext.

Trait Implementations

impl<R> From<RecipientsDecryptor<R>> for Decryptor<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for RecipientsDecryptor<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for RecipientsDecryptor<R> where
    R: Send
[src]

impl<R> Sync for RecipientsDecryptor<R> where
    R: Sync
[src]

impl<R> Unpin for RecipientsDecryptor<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for RecipientsDecryptor<R> where
    R: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,