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 Error for MlsError
impl Error for MlsError
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<AddMembersError<CryptoKeystoreError>> for MlsError
impl From<AddMembersError<CryptoKeystoreError>> for MlsError
source§fn from(source: AddMembersError<CryptoKeystoreError>) -> Self
fn from(source: AddMembersError<CryptoKeystoreError>) -> Self
source§impl From<CommitToPendingProposalsError<CryptoKeystoreError>> for MlsError
impl From<CommitToPendingProposalsError<CryptoKeystoreError>> for MlsError
source§fn from(source: CommitToPendingProposalsError<CryptoKeystoreError>) -> Self
fn from(source: CommitToPendingProposalsError<CryptoKeystoreError>) -> Self
source§impl From<KeyPackageDeleteError<CryptoKeystoreError>> for MlsError
impl From<KeyPackageDeleteError<CryptoKeystoreError>> for MlsError
source§fn from(source: KeyPackageDeleteError<CryptoKeystoreError>) -> Self
fn from(source: KeyPackageDeleteError<CryptoKeystoreError>) -> Self
source§impl From<KeyPackageNewError<CryptoKeystoreError>> for MlsError
impl From<KeyPackageNewError<CryptoKeystoreError>> for MlsError
source§fn from(source: KeyPackageNewError<CryptoKeystoreError>) -> Self
fn from(source: KeyPackageNewError<CryptoKeystoreError>) -> Self
source§impl From<MergeCommitError<CryptoKeystoreError>> for MlsError
impl From<MergeCommitError<CryptoKeystoreError>> for MlsError
source§fn from(source: MergeCommitError<CryptoKeystoreError>) -> Self
fn from(source: MergeCommitError<CryptoKeystoreError>) -> Self
source§impl From<MergePendingCommitError<CryptoKeystoreError>> for MlsError
impl From<MergePendingCommitError<CryptoKeystoreError>> for MlsError
source§fn from(source: MergePendingCommitError<CryptoKeystoreError>) -> Self
fn from(source: MergePendingCommitError<CryptoKeystoreError>) -> Self
source§impl From<MlsError> for CryptoError
impl From<MlsError> for CryptoError
source§impl From<NewGroupError<CryptoKeystoreError>> for MlsError
impl From<NewGroupError<CryptoKeystoreError>> for MlsError
source§fn from(source: NewGroupError<CryptoKeystoreError>) -> Self
fn from(source: NewGroupError<CryptoKeystoreError>) -> Self
source§impl From<ProposeSelfUpdateError<CryptoKeystoreError>> for MlsError
impl From<ProposeSelfUpdateError<CryptoKeystoreError>> for MlsError
source§fn from(source: ProposeSelfUpdateError<CryptoKeystoreError>) -> Self
fn from(source: ProposeSelfUpdateError<CryptoKeystoreError>) -> Self
source§impl From<RemoveMembersError<CryptoKeystoreError>> for MlsError
impl From<RemoveMembersError<CryptoKeystoreError>> for MlsError
source§fn from(source: RemoveMembersError<CryptoKeystoreError>) -> Self
fn from(source: RemoveMembersError<CryptoKeystoreError>) -> Self
source§impl From<SelfUpdateError<CryptoKeystoreError>> for MlsError
impl From<SelfUpdateError<CryptoKeystoreError>> for MlsError
source§fn from(source: SelfUpdateError<CryptoKeystoreError>) -> Self
fn from(source: SelfUpdateError<CryptoKeystoreError>) -> Self
source§impl From<UpdateExtensionsError<CryptoKeystoreError>> for MlsError
impl From<UpdateExtensionsError<CryptoKeystoreError>> for MlsError
source§fn from(source: UpdateExtensionsError<CryptoKeystoreError>) -> Self
fn from(source: UpdateExtensionsError<CryptoKeystoreError>) -> Self
source§impl From<WelcomeError<CryptoKeystoreError>> for MlsError
impl From<WelcomeError<CryptoKeystoreError>> for MlsError
source§fn from(source: WelcomeError<CryptoKeystoreError>) -> Self
fn from(source: WelcomeError<CryptoKeystoreError>) -> Self
Auto Trait Implementations§
impl Freeze for MlsError
impl !RefUnwindSafe for MlsError
impl Send for MlsError
impl Sync for MlsError
impl Unpin for MlsError
impl !UnwindSafe for MlsError
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read moresource§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