pub enum ClientError<StorageError> {
Show 21 variants
NoMatchingKeyPackage,
NoMatchingCredential,
CiphersuiteNotSupported,
NoMatchingGroup,
NoCiphersuite,
FailedToJoinGroup(WelcomeError<StorageError>),
TlsCodecError(Error),
ProcessMessageError(ProcessMessageError<StorageError>),
AddMembersError(AddMembersError<StorageError>),
RemoveMembersError(RemoveMembersError<StorageError>),
ProposeAddMemberError(ProposeAddMemberError<StorageError>),
ProposeRemoveMemberError(ProposeRemoveMemberError<StorageError>),
ExportSecretError(ExportSecretError),
NewGroupError(NewGroupError<StorageError>),
SelfUpdateError(SelfUpdateError<StorageError>),
ProposeSelfUpdateError(ProposeSelfUpdateError<StorageError>),
MergePendingCommitError(MergePendingCommitError<StorageError>),
MergeCommitError(MergeCommitError<StorageError>),
KeyStoreError(StorageError),
LibraryError(LibraryError),
Unknown,
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Expand description
Errors that can occur when processing messages with the client.
Variants§
NoMatchingKeyPackage
NoMatchingCredential
CiphersuiteNotSupported
NoMatchingGroup
NoCiphersuite
FailedToJoinGroup(WelcomeError<StorageError>)
See WelcomeError for more details.
TlsCodecError(Error)
See tls_codec::Error for more details.
ProcessMessageError(ProcessMessageError<StorageError>)
See ProcessMessageError for more details.
AddMembersError(AddMembersError<StorageError>)
See AddMembersError for more details.
RemoveMembersError(RemoveMembersError<StorageError>)
See RemoveMembersError for more details.
ProposeAddMemberError(ProposeAddMemberError<StorageError>)
See ProposeAddMemberError for more details.
ProposeRemoveMemberError(ProposeRemoveMemberError<StorageError>)
See ProposeRemoveMemberError for more details.
ExportSecretError(ExportSecretError)
See ExportSecretError for more details.
NewGroupError(NewGroupError<StorageError>)
See NewGroupError for more details.
SelfUpdateError(SelfUpdateError<StorageError>)
See SelfUpdateError for more details.
ProposeSelfUpdateError(ProposeSelfUpdateError<StorageError>)
See ProposeSelfUpdateError for more details.
MergePendingCommitError(MergePendingCommitError<StorageError>)
See MergePendingCommitError for more details.
MergeCommitError(MergeCommitError<StorageError>)
See MergeCommitError for more details.
KeyStoreError(StorageError)
See StorageError for more details.
LibraryError(LibraryError)
See LibraryError for more details.
Unknown
Trait Implementations§
Source§impl<StorageError: Debug> Debug for ClientError<StorageError>
impl<StorageError: Debug> Debug for ClientError<StorageError>
Source§impl<StorageError> Display for ClientError<StorageError>where
WelcomeError<StorageError>: Display,
AddMembersError<StorageError>: Display,
RemoveMembersError<StorageError>: Display,
ProposeAddMemberError<StorageError>: Display,
ProposeRemoveMemberError<StorageError>: Display,
NewGroupError<StorageError>: Display,
SelfUpdateError<StorageError>: Display,
ProposeSelfUpdateError<StorageError>: Display,
MergePendingCommitError<StorageError>: Display,
MergeCommitError<StorageError>: Display,
StorageError: Display,
impl<StorageError> Display for ClientError<StorageError>where
WelcomeError<StorageError>: Display,
AddMembersError<StorageError>: Display,
RemoveMembersError<StorageError>: Display,
ProposeAddMemberError<StorageError>: Display,
ProposeRemoveMemberError<StorageError>: Display,
NewGroupError<StorageError>: Display,
SelfUpdateError<StorageError>: Display,
ProposeSelfUpdateError<StorageError>: Display,
MergePendingCommitError<StorageError>: Display,
MergeCommitError<StorageError>: Display,
StorageError: Display,
Source§impl<StorageError> Error for ClientError<StorageError>where
WelcomeError<StorageError>: Error,
AddMembersError<StorageError>: Error,
RemoveMembersError<StorageError>: Error,
ProposeAddMemberError<StorageError>: Error,
ProposeRemoveMemberError<StorageError>: Error,
NewGroupError<StorageError>: Error,
SelfUpdateError<StorageError>: Error,
ProposeSelfUpdateError<StorageError>: Error,
MergePendingCommitError<StorageError>: Error,
MergeCommitError<StorageError>: Error,
StorageError: Error,
Self: Debug + Display,
impl<StorageError> Error for ClientError<StorageError>where
WelcomeError<StorageError>: Error,
AddMembersError<StorageError>: Error,
RemoveMembersError<StorageError>: Error,
ProposeAddMemberError<StorageError>: Error,
ProposeRemoveMemberError<StorageError>: Error,
NewGroupError<StorageError>: Error,
SelfUpdateError<StorageError>: Error,
ProposeSelfUpdateError<StorageError>: Error,
MergePendingCommitError<StorageError>: Error,
MergeCommitError<StorageError>: Error,
StorageError: Error,
Self: Debug + Display,
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<StorageError> From<AddMembersError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<AddMembersError<StorageError>> for ClientError<StorageError>
Source§fn from(source: AddMembersError<StorageError>) -> Self
fn from(source: AddMembersError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ClientError<StorageError>> for SetupError<StorageError>
impl<StorageError> From<ClientError<StorageError>> for SetupError<StorageError>
Source§fn from(source: ClientError<StorageError>) -> Self
fn from(source: ClientError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<MergeCommitError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<MergeCommitError<StorageError>> for ClientError<StorageError>
Source§fn from(source: MergeCommitError<StorageError>) -> Self
fn from(source: MergeCommitError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<MergePendingCommitError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<MergePendingCommitError<StorageError>> for ClientError<StorageError>
Source§fn from(source: MergePendingCommitError<StorageError>) -> Self
fn from(source: MergePendingCommitError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<NewGroupError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<NewGroupError<StorageError>> for ClientError<StorageError>
Source§fn from(source: NewGroupError<StorageError>) -> Self
fn from(source: NewGroupError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeAddMemberError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<ProposeAddMemberError<StorageError>> for ClientError<StorageError>
Source§fn from(source: ProposeAddMemberError<StorageError>) -> Self
fn from(source: ProposeAddMemberError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeRemoveMemberError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<ProposeRemoveMemberError<StorageError>> for ClientError<StorageError>
Source§fn from(source: ProposeRemoveMemberError<StorageError>) -> Self
fn from(source: ProposeRemoveMemberError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ProposeSelfUpdateError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<ProposeSelfUpdateError<StorageError>> for ClientError<StorageError>
Source§fn from(source: ProposeSelfUpdateError<StorageError>) -> Self
fn from(source: ProposeSelfUpdateError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<RemoveMembersError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<RemoveMembersError<StorageError>> for ClientError<StorageError>
Source§fn from(source: RemoveMembersError<StorageError>) -> Self
fn from(source: RemoveMembersError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<SelfUpdateError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<SelfUpdateError<StorageError>> for ClientError<StorageError>
Source§fn from(source: SelfUpdateError<StorageError>) -> Self
fn from(source: SelfUpdateError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<StorageError> for ClientError<StorageError>
impl<StorageError> From<StorageError> for ClientError<StorageError>
Source§impl<StorageError> From<WelcomeError<StorageError>> for ClientError<StorageError>
impl<StorageError> From<WelcomeError<StorageError>> for ClientError<StorageError>
Source§fn from(source: WelcomeError<StorageError>) -> Self
fn from(source: WelcomeError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError: PartialEq> PartialEq for ClientError<StorageError>
impl<StorageError: PartialEq> PartialEq for ClientError<StorageError>
impl<StorageError> StructuralPartialEq for ClientError<StorageError>
Auto Trait Implementations§
impl<StorageError> Freeze for ClientError<StorageError>where
StorageError: Freeze,
impl<StorageError> RefUnwindSafe for ClientError<StorageError>where
StorageError: RefUnwindSafe,
impl<StorageError> Send for ClientError<StorageError>where
StorageError: Send,
impl<StorageError> Sync for ClientError<StorageError>where
StorageError: Sync,
impl<StorageError> Unpin for ClientError<StorageError>where
StorageError: Unpin,
impl<StorageError> UnwindSafe for ClientError<StorageError>where
StorageError: UnwindSafe,
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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