core_crypto::prelude

Enum MlsError

source
pub enum MlsError {
Show 32 variants MlsWelcomeError(WelcomeError<CryptoKeystoreError>), MlsLibraryError(LibraryError), MlsInvalidMessageError(CreateMessageError), MlsEmptyInputError(EmptyInputError), MlsCredentialError(CredentialError), MlsNewGroupError(NewGroupError<CryptoKeystoreError>), MlsAddMembersError(AddMembersError<CryptoKeystoreError>), MlsRemoveMembersError(RemoveMembersError<CryptoKeystoreError>), MlsMessageError(ProcessMessageError), MlsKeyPackageBundleNewError(KeyPackageNewError<CryptoKeystoreError>), MlsSelfUpdateError(SelfUpdateError<CryptoKeystoreError>), MlsMlsGroupStateError(MlsGroupStateError), ProposeAddMemberError(ProposeAddMemberError), ProposeSelfUpdateError(ProposeSelfUpdateError<CryptoKeystoreError>), ProposeRemoveMemberError(ProposeRemoveMemberError), MlsCommitToPendingProposalsError(CommitToPendingProposalsError<CryptoKeystoreError>), MlsExportGroupInfoError(ExportGroupInfoError), MlsTlsCodecError(Error), MlsKeystoreSerializationError(Error), MlsErrorString(ErrorString), MlsExternalCommitError(ExternalCommitError), MlsCryptoError(CryptoError), MlsExportSecretError(ExportSecretError), MlsMergeCommitError(MergeCommitError<CryptoKeystoreError>), MlsKeyPackageValidationError(KeyPackageVerifyError), MlsMergePendingCommitError(MergePendingCommitError<CryptoKeystoreError>), MlsEncryptMessageError(MlsMessageError), MlsDeleteKeyPackageError(KeyPackageDeleteError<CryptoKeystoreError>), MlsUpdateExtensionsError(UpdateExtensionsError<CryptoKeystoreError>), MlsLeafNodeValidationError(LeafNodeValidationError), RatchetTreeError(RatchetTreeError), GroupInfoError(GroupInfoError),
}
Expand description

MLS-specific error wrapper - see github.com/openmls/openmls for details

Variants§

§

MlsWelcomeError(WelcomeError<CryptoKeystoreError>)

Welcome error

§

MlsLibraryError(LibraryError)

Generic error type that indicates unrecoverable errors in the library. See [openmls::error::LibraryError]

§

MlsInvalidMessageError(CreateMessageError)

Create message error

§

MlsEmptyInputError(EmptyInputError)

EmptyInput error

§

MlsCredentialError(CredentialError)

An error that occurs in methods of a openmls::credentials::Credential.

§

MlsNewGroupError(NewGroupError<CryptoKeystoreError>)

New group error

§

MlsAddMembersError(AddMembersError<CryptoKeystoreError>)

Add members error

§

MlsRemoveMembersError(RemoveMembersError<CryptoKeystoreError>)

Remove members error

§

MlsMessageError(ProcessMessageError)

Parse message error

§

MlsKeyPackageBundleNewError(KeyPackageNewError<CryptoKeystoreError>)

KeyPackageBundle new error

§

MlsSelfUpdateError(SelfUpdateError<CryptoKeystoreError>)

Self update error

§

MlsMlsGroupStateError(MlsGroupStateError)

Group state error

§

ProposeAddMemberError(ProposeAddMemberError)

Propose add members error

§

ProposeSelfUpdateError(ProposeSelfUpdateError<CryptoKeystoreError>)

Propose self update error

§

ProposeRemoveMemberError(ProposeRemoveMemberError)

Propose remove members error

§

MlsCommitToPendingProposalsError(CommitToPendingProposalsError<CryptoKeystoreError>)

Commit to pending proposals error

§

MlsExportGroupInfoError(ExportGroupInfoError)

Export public group state error

§

MlsTlsCodecError(Error)

Errors that are thrown by TLS serialization crate.

§

MlsKeystoreSerializationError(Error)

This type represents all possible errors that can occur when serializing or deserializing JSON data.

§

MlsErrorString(ErrorString)

A wrapper struct for an error string. This can be used when no complex error variant is needed.

§

MlsExternalCommitError(ExternalCommitError)

External Commit error

§

MlsCryptoError(CryptoError)

OpenMls crypto error

§

MlsExportSecretError(ExportSecretError)

OpenMls Export Secret error

§

MlsMergeCommitError(MergeCommitError<CryptoKeystoreError>)

OpenMLS merge commit error

§

MlsKeyPackageValidationError(KeyPackageVerifyError)

OpenMLS keypackage validation error

§

MlsMergePendingCommitError(MergePendingCommitError<CryptoKeystoreError>)

OpenMLS Commit merge error

§

MlsEncryptMessageError(MlsMessageError)

OpenMLS encrypt message error

§

MlsDeleteKeyPackageError(KeyPackageDeleteError<CryptoKeystoreError>)

OpenMLS delete KeyPackage error

§

MlsUpdateExtensionsError(UpdateExtensionsError<CryptoKeystoreError>)

OpenMLS update extensions error

§

MlsLeafNodeValidationError(LeafNodeValidationError)

OpenMLS LeafNode validation error

§

RatchetTreeError(RatchetTreeError)

OpenMLS LeafNode validation error

§

GroupInfoError(GroupInfoError)

OpenMLS GroupInfo error

Trait Implementations§

source§

impl Debug for MlsError

source§

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

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

impl Display for MlsError

source§

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

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

impl Error for MlsError

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl<'_derivative_strum> From<&'_derivative_strum MlsError> for &'static str

source§

fn from(x: &'_derivative_strum MlsError) -> &'static str

Converts to this type from the input type.
source§

impl From<AddMembersError<CryptoKeystoreError>> for MlsError

source§

fn from(source: AddMembersError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<CommitToPendingProposalsError<CryptoKeystoreError>> for MlsError

source§

fn from(source: CommitToPendingProposalsError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<CreateMessageError> for MlsError

source§

fn from(source: CreateMessageError) -> Self

Converts to this type from the input type.
source§

impl From<CredentialError> for MlsError

source§

fn from(source: CredentialError) -> Self

Converts to this type from the input type.
source§

impl From<CryptoError> for MlsError

source§

fn from(source: CryptoError) -> Self

Converts to this type from the input type.
source§

impl From<EmptyInputError> for MlsError

source§

fn from(source: EmptyInputError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MlsError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for MlsError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ErrorString> for MlsError

source§

fn from(source: ErrorString) -> Self

Converts to this type from the input type.
source§

impl From<ExportGroupInfoError> for MlsError

source§

fn from(source: ExportGroupInfoError) -> Self

Converts to this type from the input type.
source§

impl From<ExportSecretError> for MlsError

source§

fn from(source: ExportSecretError) -> Self

Converts to this type from the input type.
source§

impl From<ExternalCommitError> for MlsError

source§

fn from(source: ExternalCommitError) -> Self

Converts to this type from the input type.
source§

impl From<GroupInfoError> for MlsError

source§

fn from(source: GroupInfoError) -> Self

Converts to this type from the input type.
source§

impl From<KeyPackageDeleteError<CryptoKeystoreError>> for MlsError

source§

fn from(source: KeyPackageDeleteError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<KeyPackageNewError<CryptoKeystoreError>> for MlsError

source§

fn from(source: KeyPackageNewError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<KeyPackageVerifyError> for MlsError

source§

fn from(source: KeyPackageVerifyError) -> Self

Converts to this type from the input type.
source§

impl From<LeafNodeValidationError> for MlsError

source§

fn from(source: LeafNodeValidationError) -> Self

Converts to this type from the input type.
source§

impl From<LibraryError> for MlsError

source§

fn from(source: LibraryError) -> Self

Converts to this type from the input type.
source§

impl From<MergeCommitError<CryptoKeystoreError>> for MlsError

source§

fn from(source: MergeCommitError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<MergePendingCommitError<CryptoKeystoreError>> for MlsError

source§

fn from(source: MergePendingCommitError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<MlsError> for &'static str

source§

fn from(x: MlsError) -> &'static str

Converts to this type from the input type.
source§

impl From<MlsError> for CryptoError

source§

fn from(err: MlsError) -> Self

Converts to this type from the input type.
source§

impl From<MlsGroupStateError> for MlsError

source§

fn from(source: MlsGroupStateError) -> Self

Converts to this type from the input type.
source§

impl From<MlsMessageError> for MlsError

source§

fn from(source: MlsMessageError) -> Self

Converts to this type from the input type.
source§

impl From<NewGroupError<CryptoKeystoreError>> for MlsError

source§

fn from(source: NewGroupError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<ProcessMessageError> for MlsError

source§

fn from(source: ProcessMessageError) -> Self

Converts to this type from the input type.
source§

impl From<ProposeAddMemberError> for MlsError

source§

fn from(source: ProposeAddMemberError) -> Self

Converts to this type from the input type.
source§

impl From<ProposeRemoveMemberError> for MlsError

source§

fn from(source: ProposeRemoveMemberError) -> Self

Converts to this type from the input type.
source§

impl From<ProposeSelfUpdateError<CryptoKeystoreError>> for MlsError

source§

fn from(source: ProposeSelfUpdateError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<RatchetTreeError> for MlsError

source§

fn from(source: RatchetTreeError) -> Self

Converts to this type from the input type.
source§

impl From<RemoveMembersError<CryptoKeystoreError>> for MlsError

source§

fn from(source: RemoveMembersError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<SelfUpdateError<CryptoKeystoreError>> for MlsError

source§

fn from(source: SelfUpdateError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<UpdateExtensionsError<CryptoKeystoreError>> for MlsError

source§

fn from(source: UpdateExtensionsError<CryptoKeystoreError>) -> Self

Converts to this type from the input type.
source§

impl From<WelcomeError<CryptoKeystoreError>> for MlsError

source§

fn from(source: WelcomeError<CryptoKeystoreError>) -> 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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, UT> HandleAlloc<UT> for T
where T: Send + Sync,

§

fn new_handle(value: Arc<T>) -> Handle

Create a new handle for an Arc value Read more
§

unsafe fn clone_handle(handle: Handle) -> Handle

Clone a handle Read more
§

unsafe fn consume_handle(handle: Handle) -> Arc<T>

Consume a handle, getting back the initial Arc<> Read more
§

unsafe fn get_arc(handle: Handle) -> Arc<Self>

Get a clone of the Arc<> using a “borrowed” handle. Read more
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
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

§

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

§

impl<T> MaybeSendSync for T