pub enum ExternalCommitError<StorageError> {
LibraryError(LibraryError),
MissingRatchetTree,
MissingExternalPub,
UnsupportedCiphersuite,
UnknownSender,
InvalidGroupInfoSignature,
CommitError(CreateCommitError),
PublicGroupError(CreationFromExternalError<StorageError>),
MissingCredential,
StorageError(StorageError),
}Expand description
External Commit error
Variants§
LibraryError(LibraryError)
See LibraryError for more details.
MissingRatchetTree
No ratchet tree available to build initial tree.
MissingExternalPub
No external_pub extension available to join group by external commit.
UnsupportedCiphersuite
We don’t support the ciphersuite of the group we are trying to join.
UnknownSender
Sender not found in tree.
InvalidGroupInfoSignature
The signature over the given group info is invalid.
CommitError(CreateCommitError)
Error creating external commit.
PublicGroupError(CreationFromExternalError<StorageError>)
This error indicates the public tree is invalid. See
CreationFromExternalError for more details.
MissingCredential
Credential is missing from external commit.
StorageError(StorageError)
An erorr occurred when writing group to storage
Trait Implementations§
Source§impl<StorageError: Clone> Clone for ExternalCommitError<StorageError>
impl<StorageError: Clone> Clone for ExternalCommitError<StorageError>
Source§fn clone(&self) -> ExternalCommitError<StorageError>
fn clone(&self) -> ExternalCommitError<StorageError>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<StorageError: Debug> Debug for ExternalCommitError<StorageError>
impl<StorageError: Debug> Debug for ExternalCommitError<StorageError>
Source§impl<StorageError> Display for ExternalCommitError<StorageError>where
CreationFromExternalError<StorageError>: Display,
impl<StorageError> Display for ExternalCommitError<StorageError>where
CreationFromExternalError<StorageError>: Display,
Source§impl<StorageError> Error for ExternalCommitError<StorageError>
impl<StorageError> Error for ExternalCommitError<StorageError>
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<CreateCommitError> for ExternalCommitError<StorageError>
impl<StorageError> From<CreateCommitError> for ExternalCommitError<StorageError>
Source§fn from(source: CreateCommitError) -> Self
fn from(source: CreateCommitError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<CreationFromExternalError<StorageError>> for ExternalCommitError<StorageError>
impl<StorageError> From<CreationFromExternalError<StorageError>> for ExternalCommitError<StorageError>
Source§fn from(source: CreationFromExternalError<StorageError>) -> Self
fn from(source: CreationFromExternalError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ExternalCommitBuilderError<StorageError>> for ExternalCommitError<StorageError>
impl<StorageError> From<ExternalCommitBuilderError<StorageError>> for ExternalCommitError<StorageError>
Source§fn from(error: ExternalCommitBuilderError<StorageError>) -> Self
fn from(error: ExternalCommitBuilderError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ExternalCommitBuilderFinalizeError<StorageError>> for ExternalCommitError<StorageError>
impl<StorageError> From<ExternalCommitBuilderFinalizeError<StorageError>> for ExternalCommitError<StorageError>
Source§fn from(error: ExternalCommitBuilderFinalizeError<StorageError>) -> Self
fn from(error: ExternalCommitBuilderFinalizeError<StorageError>) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<LibraryError> for ExternalCommitError<StorageError>
impl<StorageError> From<LibraryError> for ExternalCommitError<StorageError>
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl<StorageError: PartialEq> PartialEq for ExternalCommitError<StorageError>
impl<StorageError: PartialEq> PartialEq for ExternalCommitError<StorageError>
Source§fn eq(&self, other: &ExternalCommitError<StorageError>) -> bool
fn eq(&self, other: &ExternalCommitError<StorageError>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<StorageError> StructuralPartialEq for ExternalCommitError<StorageError>
Auto Trait Implementations§
impl<StorageError> Freeze for ExternalCommitError<StorageError>where
StorageError: Freeze,
impl<StorageError> RefUnwindSafe for ExternalCommitError<StorageError>where
StorageError: RefUnwindSafe,
impl<StorageError> Send for ExternalCommitError<StorageError>where
StorageError: Send,
impl<StorageError> Sync for ExternalCommitError<StorageError>where
StorageError: Sync,
impl<StorageError> Unpin for ExternalCommitError<StorageError>where
StorageError: Unpin,
impl<StorageError> UnwindSafe for ExternalCommitError<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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