pub enum RejectionReason {
Show 20 variants
DuplicateMessage,
StaleCommit,
StaleProposal,
MessageEpochTooOld {
message_epoch: u64,
group_epoch: u64,
},
UnbufferedFarFutureMessage {
message_epoch: u64,
group_epoch: u64,
},
InvalidAuthentication,
Unparseable(TlsCodecError),
InappropriateMessageBodyType,
UnsupportedProtocolVersion,
IncompatibleWireFormat,
InvalidSignature,
MalformedCredential(CredentialError),
UntrustedCredential(CryptoError),
WrongGroupId,
UnknownMember,
WrongRecipient,
InvalidMembershipTag,
UnauthorizedExternalSender,
UnsupportedProposalType,
ConfirmationTagMismatch,
}Expand description
A reason why this message could not be decrypted.
Variants§
DuplicateMessage
This message has already been processed, or replays a message which has.
StaleCommit
This commit is for an epoch which this conversation has already moved past.
StaleProposal
This proposal is for an epoch which this conversation has already moved past.
MessageEpochTooOld
This message is from an epoch whose secrets are no longer available.
This includes transient messages from any epoch older than the current one.
UnbufferedFarFutureMessage
This message is from an epoch too far in the future to buffer.
InvalidAuthentication
This message’s ciphertext failed authentication, so it could not be decrypted.
The ciphertext may have been corrupted or tampered with, or encrypted with keys we don’t have. Authenticated encryption deliberately doesn’t distinguish between these.
Unparseable(TlsCodecError)
This message could not be deserialized.
InappropriateMessageBodyType
This message is valid MLS, but not a public or private message, so it cannot be decrypted.
For example, a welcome or a key package.
UnsupportedProtocolVersion
This message uses a protocol version we don’t support.
IncompatibleWireFormat
This message uses a wire format which the conversation’s wire format policy doesn’t allow.
InvalidSignature
This message’s signature doesn’t match its sender’s signature key.
MalformedCredential(CredentialError)
The sender’s X509 certificate chain could not be parsed.
UntrustedCredential(CryptoError)
The sender’s X509 certificate chain is not correctly signed.
WrongGroupId
This message belongs to a different conversation.
UnknownMember
This message’s sender is not a member of the conversation in the message’s epoch.
WrongRecipient
This targeted message is addressed to a different member of the conversation.
InvalidMembershipTag
This public message’s membership tag is missing or invalid.
This message comes from an external sender not authorized in this conversation.
UnsupportedProposalType
This external proposal is of a type which external senders may not send.
ConfirmationTagMismatch
This commit’s confirmation tag doesn’t match the one we computed.
Either the commit is invalid, or our view of the conversation has diverged from the sender’s.
Trait Implementations§
Source§impl Debug for RejectionReason
impl Debug for RejectionReason
Source§impl From<CredentialError> for RejectionReason
impl From<CredentialError> for RejectionReason
Source§impl From<CryptoError> for RejectionReason
impl From<CryptoError> for RejectionReason
Source§impl From<RejectionReason> for DecryptionOutcome
impl From<RejectionReason> for DecryptionOutcome
Source§fn from(value: RejectionReason) -> Self
fn from(value: RejectionReason) -> Self
Source§impl From<TlsCodecError> for RejectionReason
impl From<TlsCodecError> for RejectionReason
Source§fn from(value: TlsCodecError) -> Self
fn from(value: TlsCodecError) -> Self
Auto Trait Implementations§
impl Freeze for RejectionReason
impl RefUnwindSafe for RejectionReason
impl Send for RejectionReason
impl Sync for RejectionReason
impl Unpin for RejectionReason
impl UnsafeUnpin for RejectionReason
impl UnwindSafe for RejectionReason
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
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> ⓘ
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