pub enum ProcessTargetedMessageError<StorageError> {
GroupIdMismatch,
EpochMismatch,
NotIntendedRecipient,
SenderNotFound,
SenderAuthDataDecryptionFailed,
MalformedSenderAuthData,
SignatureVerificationFailed,
ContentDecryptionFailed,
MalformedContent,
GroupNotActive,
StorageError(StorageError),
LibraryError(LibraryError),
}Available on crate feature
targeted-messages-draft only.Expand description
Error processing a targeted message.
Variants§
GroupIdMismatch
The group ID in the message doesn’t match.
EpochMismatch
The epoch in the message doesn’t match.
NotIntendedRecipient
The message was not intended for this recipient.
SenderNotFound
The sender’s leaf index refers to a blank leaf.
SenderAuthDataDecryptionFailed
Decryption of sender auth data failed.
MalformedSenderAuthData
The sender auth data could not be deserialized.
SignatureVerificationFailed
Signature verification failed.
ContentDecryptionFailed
Decryption of the message content failed.
MalformedContent
The decrypted content could not be deserialized.
GroupNotActive
The group is not active.
StorageError(StorageError)
Error reading from storage.
LibraryError(LibraryError)
A library error occurred.
Trait Implementations§
Source§impl<StorageError: Debug> Debug for ProcessTargetedMessageError<StorageError>
impl<StorageError: Debug> Debug for ProcessTargetedMessageError<StorageError>
Source§impl<StorageError> Display for ProcessTargetedMessageError<StorageError>where
StorageError: Display,
impl<StorageError> Display for ProcessTargetedMessageError<StorageError>where
StorageError: Display,
Source§impl<StorageError> Error for ProcessTargetedMessageError<StorageError>
impl<StorageError> Error for ProcessTargetedMessageError<StorageError>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<StorageError> From<LibraryError> for ProcessTargetedMessageError<StorageError>
impl<StorageError> From<LibraryError> for ProcessTargetedMessageError<StorageError>
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<StorageError> Freeze for ProcessTargetedMessageError<StorageError>where
StorageError: Freeze,
Available on 32-bit or 64-bit only.
impl<StorageError> RefUnwindSafe for ProcessTargetedMessageError<StorageError>where
StorageError: RefUnwindSafe,
Available on 32-bit or 64-bit only.
impl<StorageError> Send for ProcessTargetedMessageError<StorageError>where
StorageError: Send,
Available on 32-bit or 64-bit only.
impl<StorageError> Sync for ProcessTargetedMessageError<StorageError>where
StorageError: Sync,
Available on 32-bit or 64-bit only.
impl<StorageError> Unpin for ProcessTargetedMessageError<StorageError>where
StorageError: Unpin,
Available on 32-bit or 64-bit only.
impl<StorageError> UnsafeUnpin for ProcessTargetedMessageError<StorageError>where
StorageError: UnsafeUnpin,
Available on 32-bit or 64-bit only.
impl<StorageError> UnwindSafe for ProcessTargetedMessageError<StorageError>where
StorageError: UnwindSafe,
Available on 32-bit or 64-bit only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
Available on 32-bit or 64-bit only.
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Available on 32-bit or 64-bit only.
§impl<T> Classify for T
Available on 32-bit or 64-bit only.
impl<T> Classify for T
Available on 32-bit or 64-bit only.
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
Available on 32-bit or 64-bit only.
impl<T> Declassify for T
Available on 32-bit or 64-bit only.
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
Available on 32-bit or 64-bit only.
impl<T> IntoEither for T
Available on 32-bit or 64-bit only.
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§impl<T> Pointable for T
Available on 32-bit or 64-bit only.
impl<T> Pointable for T
Available on 32-bit or 64-bit only.
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Available on 32-bit or 64-bit only.
Source§impl<S, T> Upcast<T> for S
Available on 32-bit or 64-bit only.
impl<S, T> Upcast<T> for S
Available on 32-bit or 64-bit only.