pub enum MlsError {
Show 23 variants
UnableToCreateKeyPackage(KeyPackageNewError),
InvalidHashRef(LibraryError),
UnableToCreateSigner(CryptoError),
InvalidJson(Error),
MlsMessageDeserialize(Error),
ProtocolMessage(ProtocolMessageError),
MlsMessageSerialize(MlsMessageError),
KeyPackageJson(Error),
ProcessMessage(Box<dyn StdError + Send + Sync>),
CreateMessage(CreateMessageError),
MergeCommit(Box<dyn StdError + Send + Sync>),
MergePendingCommit(Box<dyn StdError + Send + Sync>),
CommitToPendingProposals(Box<dyn StdError + Send + Sync>),
ProposeAddMember(Box<dyn StdError + Send + Sync>),
ProposeRemoveMember(Box<dyn StdError + Send + Sync>),
NewGroup(Box<dyn StdError + Send + Sync>),
Welcome(Box<dyn StdError + Send + Sync>),
MlsStorage(Box<dyn StdError + Send + Sync>),
Lock(String),
UnexpectedMessageType,
ConversationNotFound(String),
NoPendingStagedCommit(String),
UnknownLeafIndex(u32),
}Variants§
UnableToCreateKeyPackage(KeyPackageNewError)
InvalidHashRef(LibraryError)
UnableToCreateSigner(CryptoError)
InvalidJson(Error)
MlsMessageDeserialize(Error)
ProtocolMessage(ProtocolMessageError)
MlsMessageSerialize(MlsMessageError)
KeyPackageJson(Error)
ProcessMessage(Box<dyn StdError + Send + Sync>)
CreateMessage(CreateMessageError)
MergeCommit(Box<dyn StdError + Send + Sync>)
MergePendingCommit(Box<dyn StdError + Send + Sync>)
CommitToPendingProposals(Box<dyn StdError + Send + Sync>)
ProposeAddMember(Box<dyn StdError + Send + Sync>)
ProposeRemoveMember(Box<dyn StdError + Send + Sync>)
NewGroup(Box<dyn StdError + Send + Sync>)
Welcome(Box<dyn StdError + Send + Sync>)
MlsStorage(Box<dyn StdError + Send + Sync>)
Lock(String)
UnexpectedMessageType
ConversationNotFound(String)
NoPendingStagedCommit(String)
UnknownLeafIndex(u32)
Implementations§
Source§impl MlsError
impl MlsError
Sourcepub fn storage<E: StdError + Send + Sync + 'static>(e: E) -> Self
pub fn storage<E: StdError + Send + Sync + 'static>(e: E) -> Self
Box any storage-backend error into MlsError::MlsStorage. Used in
.map_err(MlsError::storage)? at call sites whose error type is the
storage’s concrete Error (which can’t be auto-converted via
blanket From<E> without colliding with existing impls).
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E: StdError + Send + Sync + 'static> From<CommitToPendingProposalsError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<CommitToPendingProposalsError<E>> for MlsError
Source§fn from(e: CommitToPendingProposalsError<E>) -> Self
fn from(e: CommitToPendingProposalsError<E>) -> Self
Converts to this type from the input type.
Source§impl From<CreateMessageError> for MlsError
impl From<CreateMessageError> for MlsError
Source§fn from(source: CreateMessageError) -> Self
fn from(source: CreateMessageError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for MlsError
impl From<CryptoError> for MlsError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<KeyPackageNewError> for MlsError
impl From<KeyPackageNewError> for MlsError
Source§fn from(source: KeyPackageNewError) -> Self
fn from(source: KeyPackageNewError) -> Self
Converts to this type from the input type.
Source§impl From<LibraryError> for MlsError
impl From<LibraryError> for MlsError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<MergeCommitError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<MergeCommitError<E>> for MlsError
Source§fn from(e: MergeCommitError<E>) -> Self
fn from(e: MergeCommitError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<MergePendingCommitError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<MergePendingCommitError<E>> for MlsError
Source§fn from(e: MergePendingCommitError<E>) -> Self
fn from(e: MergePendingCommitError<E>) -> Self
Converts to this type from the input type.
Source§impl From<MlsMessageError> for MlsError
impl From<MlsMessageError> for MlsError
Source§fn from(source: MlsMessageError) -> Self
fn from(source: MlsMessageError) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<NewGroupError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<NewGroupError<E>> for MlsError
Source§fn from(e: NewGroupError<E>) -> Self
fn from(e: NewGroupError<E>) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for MlsError
Recover a poisoned lock as MlsError::Lock.
impl<T> From<PoisonError<T>> for MlsError
Recover a poisoned lock as MlsError::Lock.
Source§fn from(e: PoisonError<T>) -> Self
fn from(e: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<ProcessMessageError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<ProcessMessageError<E>> for MlsError
Source§fn from(e: ProcessMessageError<E>) -> Self
fn from(e: ProcessMessageError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<ProposeAddMemberError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<ProposeAddMemberError<E>> for MlsError
Source§fn from(e: ProposeAddMemberError<E>) -> Self
fn from(e: ProposeAddMemberError<E>) -> Self
Converts to this type from the input type.
Source§impl<E: StdError + Send + Sync + 'static> From<ProposeRemoveMemberError<E>> for MlsError
impl<E: StdError + Send + Sync + 'static> From<ProposeRemoveMemberError<E>> for MlsError
Source§fn from(e: ProposeRemoveMemberError<E>) -> Self
fn from(e: ProposeRemoveMemberError<E>) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolMessageError> for MlsError
impl From<ProtocolMessageError> for MlsError
Source§fn from(source: ProtocolMessageError) -> Self
fn from(source: ProtocolMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MlsError
impl !RefUnwindSafe for MlsError
impl Send for MlsError
impl Sync for MlsError
impl Unpin for MlsError
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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