ClientError

Enum ClientError 

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

Source§

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

Formats the value using the given formatter. Read more
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,

Source§

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

Formats the value using the given formatter. Read more
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,

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<StorageError> From<AddMembersError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<ClientError<StorageError>> for SetupError<StorageError>

Source§

fn from(source: ClientError<StorageError>) -> Self

Converts to this type from the input type.
Source§

impl<StorageError> From<MergeCommitError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<MergePendingCommitError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<NewGroupError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<ProposeAddMemberError<StorageError>> for ClientError<StorageError>

Source§

fn from(source: ProposeAddMemberError<StorageError>) -> Self

Converts to this type from the input type.
Source§

impl<StorageError> From<ProposeRemoveMemberError<StorageError>> for ClientError<StorageError>

Source§

fn from(source: ProposeRemoveMemberError<StorageError>) -> Self

Converts to this type from the input type.
Source§

impl<StorageError> From<ProposeSelfUpdateError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<RemoveMembersError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<SelfUpdateError<StorageError>> for ClientError<StorageError>

Source§

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

Converts to this type from the input type.
Source§

impl<StorageError> From<StorageError> for ClientError<StorageError>

Source§

fn from(source: StorageError) -> Self

Converts to this type from the input type.
Source§

impl<StorageError> From<WelcomeError<StorageError>> for ClientError<StorageError>

Source§

fn from(source: WelcomeError<StorageError>) -> Self

Converts to this type from the input type.
Source§

impl<StorageError: PartialEq> PartialEq for ClientError<StorageError>

Source§

fn eq(&self, other: &ClientError<StorageError>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

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

§

type Classified = T

§

fn classify(self) -> T

§

impl<T> Declassify for T

§

type Declassified = T

§

fn declassify(self) -> T

Source§

impl<T> From<!> for T

Source§

fn from(t: !) -> T

Converts to this type from the input type.
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> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. 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§

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