pub enum DecryptOutcome {
Plaintext,
Decoded,
MissingKey,
TagFailed {
error: String,
},
}Expand description
Outcome of a single decrypt attempt on an incoming clip.
Variants§
Plaintext
Clip was not flagged encrypted; nothing to do.
Decoded
Successfully decrypted; clip.content + clip.encrypted mutated in place.
MissingKey
No AES key in local store; clip left untouched.
TagFailed
AES-GCM tag verification failed (likely key mismatch); clip left untouched.
Trait Implementations§
Source§impl Clone for DecryptOutcome
impl Clone for DecryptOutcome
Source§fn clone(&self) -> DecryptOutcome
fn clone(&self) -> DecryptOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecryptOutcome
impl Debug for DecryptOutcome
Source§impl PartialEq for DecryptOutcome
impl PartialEq for DecryptOutcome
Source§fn eq(&self, other: &DecryptOutcome) -> bool
fn eq(&self, other: &DecryptOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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