pub enum ValidationError {
Show 27 variants
LibraryError(LibraryError),
WrongGroupId,
WrongEpoch,
NotACommit,
NotAnExternalAddProposal,
NoPath,
UnencryptedApplicationMessage,
UnknownMember,
MissingMembershipTag,
InvalidMembershipTag,
MissingConfirmationTag,
WrongWireFormat,
InvalidSignature,
NonMemberApplicationMessage,
UnableToDecrypt(MessageDecryptionError),
NoPastEpochData,
UnauthorizedExternalSender,
NoExternalSendersExtension,
KeyPackageVerifyError(KeyPackageVerifyError),
UpdatePathError(UpdatePathError),
InvalidLeafNodeSignature,
InvalidLeafNodeSourceType,
InvalidSenderType,
CommitterIncludedOwnUpdate,
InvalidAddProposalCiphersuite,
CannotDecryptOwnMessage,
ExternalCommitValidation(ExternalCommitValidationError),
}
Expand description
Validation error
Variants§
LibraryError(LibraryError)
See LibraryError
for more details.
WrongGroupId
Message group ID differs from the group’s group ID.
WrongEpoch
Message epoch differs from the group’s epoch.
NotACommit
The PublicMessage is not a Commit despite the sender begin of type NewMemberCommit.
NotAnExternalAddProposal
The PublicMessage is not an External Add Proposal despite the sender begin of type NewMemberProposal.
NoPath
The Commit doesn’t have a path despite the sender being of type NewMemberCommit.
UnencryptedApplicationMessage
The PublicMessage contains an application message but was not encrypted.
UnknownMember
Sender is not part of the group.
MissingMembershipTag
Membership tag is missing.
InvalidMembershipTag
Membership tag is invalid.
MissingConfirmationTag
The confirmation tag is missing.
WrongWireFormat
Wrong wire format.
InvalidSignature
Verifying the signature failed.
NonMemberApplicationMessage
An application message was sent from an external sender.
UnableToDecrypt(MessageDecryptionError)
Could not decrypt the message
NoPastEpochData
The message is from an epoch too far in the past.
The provided external sender is not authorized to send external proposals
NoExternalSendersExtension
The group doesn’t contain external senders extension.
KeyPackageVerifyError(KeyPackageVerifyError)
The KeyPackage could not be validated.
UpdatePathError(UpdatePathError)
The UpdatePath could not be validated.
InvalidLeafNodeSignature
Invalid LeafNode signature.
InvalidLeafNodeSourceType
Invalid LeafNode source type
InvalidSenderType
Invalid sender type.
CommitterIncludedOwnUpdate
The Commit includes update proposals from the committer.
InvalidAddProposalCiphersuite
The ciphersuite in the KeyPackage of the Add proposal does not match the group context.
CannotDecryptOwnMessage
Cannot decrypt own messages because the necessary key has been deleted according to the deletion schedule.
ExternalCommitValidation(ExternalCommitValidationError)
See ExternalCommitValidationError
for more details.
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ExternalCommitValidationError> for ValidationError
impl From<ExternalCommitValidationError> for ValidationError
Source§fn from(source: ExternalCommitValidationError) -> Self
fn from(source: ExternalCommitValidationError) -> Self
Source§impl From<KeyPackageVerifyError> for ValidationError
impl From<KeyPackageVerifyError> for ValidationError
Source§fn from(source: KeyPackageVerifyError) -> Self
fn from(source: KeyPackageVerifyError) -> Self
Source§impl From<LibraryError> for ValidationError
impl From<LibraryError> for ValidationError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Source§impl From<MessageDecryptionError> for ValidationError
impl From<MessageDecryptionError> for ValidationError
Source§fn from(source: MessageDecryptionError) -> Self
fn from(source: MessageDecryptionError) -> Self
Source§impl From<UpdatePathError> for ValidationError
impl From<UpdatePathError> for ValidationError
Source§fn from(source: UpdatePathError) -> Self
fn from(source: UpdatePathError) -> Self
Source§impl From<ValidationError> for ProcessMessageError
impl From<ValidationError> for ProcessMessageError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Source§impl<StorageError> From<ValidationError> for ProposalError<StorageError>
impl<StorageError> From<ValidationError> for ProposalError<StorageError>
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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