pub enum DecryptionOutcome {
Decrypted(DecryptedMessage),
Deferred(DeferralReason),
}Expand description
Outcome of attempting to decrypt a message.
Variants§
Decrypted(DecryptedMessage)
The message was successfully decrypted.
Deferred(DeferralReason)
The message could not be processed yet, but is expected to be processable in the future.
Trait Implementations§
Source§impl Debug for DecryptionOutcome
impl Debug for DecryptionOutcome
Source§impl From<DecryptedMessage> for DecryptionOutcome
impl From<DecryptedMessage> for DecryptionOutcome
Source§fn from(value: DecryptedMessage) -> Self
fn from(value: DecryptedMessage) -> Self
Converts to this type from the input type.
Source§impl From<DeferralReason> for DecryptionOutcome
impl From<DeferralReason> for DecryptionOutcome
Source§fn from(value: DeferralReason) -> Self
fn from(value: DeferralReason) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecryptionOutcome
impl RefUnwindSafe for DecryptionOutcome
impl Send for DecryptionOutcome
impl Sync for DecryptionOutcome
impl Unpin for DecryptionOutcome
impl UnsafeUnpin for DecryptionOutcome
impl UnwindSafe for DecryptionOutcome
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more