Skip to main content

RejectionReason

Enum RejectionReason 

Source
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.

Fields

§message_epoch: u64

Epoch of the message

§group_epoch: u64

Epoch of the group

§

UnbufferedFarFutureMessage

This message is from an epoch too far in the future to buffer.

Fields

§message_epoch: u64

Epoch of the message

§group_epoch: u64

Epoch of the group

§

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.

§

UnauthorizedExternalSender

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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<CredentialError> for RejectionReason

Source§

fn from(value: CredentialError) -> Self

Converts to this type from the input type.
Source§

impl From<CryptoError> for RejectionReason

Source§

fn from(value: CryptoError) -> Self

Converts to this type from the input type.
Source§

impl From<RejectionReason> for DecryptionOutcome

Source§

fn from(value: RejectionReason) -> Self

Converts to this type from the input type.
Source§

impl From<TlsCodecError> for RejectionReason

Source§

fn from(value: TlsCodecError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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> MaybeSendSync for T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V