pub enum Attempt<T> {
Decrypted(T),
NotRecipient,
Unsupported,
Rejected,
}Expand description
One independent decryption result from the explicitly selected provider.
Capability/recipient/cryptographic rejection are completed answers, while
original processing/resource/backend errors use Result::Err.
Variants§
Decrypted(T)
The selected provider completed decryption and removed normative padding.
NotRecipient
No selected key/recipient applies to this envelope.
Unsupported
The selected provider cannot process its algorithms/recipient format.
Rejected
The selected provider completed and rejected its ciphertext/key operation.
Auto Trait Implementations§
impl<T> Freeze for Attempt<T>where
T: Freeze,
impl<T> RefUnwindSafe for Attempt<T>where
T: RefUnwindSafe,
impl<T> Send for Attempt<T>where
T: Send,
impl<T> Sync for Attempt<T>where
T: Sync,
impl<T> Unpin for Attempt<T>where
T: Unpin,
impl<T> UnsafeUnpin for Attempt<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Attempt<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more