#[non_exhaustive]pub struct DecryptOutcome {
pub output_path: PathBuf,
pub recipient_mode: AuthenticatedRecipientMode,
}Expand description
Successful outcome of PassphraseDecryptor::decrypt or
PrivateKeyDecryptor::decrypt.
Fields added later stay Eq-comparable (quantities are integers,
never floating-point), so the derived Eq is stable.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.output_path: PathBufPath to the extracted file or directory.
recipient_mode: AuthenticatedRecipientModeRecipient mode established by the authenticated decrypt: recipient
unwrap plus header MAC verification. This value is unforgeable by
callers; only the decrypt path can construct it. Distinct from the
cheap pre-authentication UnauthenticatedRecipientMode returned by
probe_recipient_mode.
Trait Implementations§
Source§impl Clone for DecryptOutcome
impl Clone for DecryptOutcome
Source§impl Debug for DecryptOutcome
impl Debug for DecryptOutcome
impl Eq for DecryptOutcome
Source§impl PartialEq for DecryptOutcome
impl PartialEq for DecryptOutcome
impl StructuralPartialEq for DecryptOutcome
Auto Trait Implementations§
impl Freeze for DecryptOutcome
impl RefUnwindSafe for DecryptOutcome
impl Send for DecryptOutcome
impl Sync for DecryptOutcome
impl Unpin for DecryptOutcome
impl UnsafeUnpin for DecryptOutcome
impl UnwindSafe for DecryptOutcome
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