pub enum ExternalCommitBuilderError<StorageError> {
LibraryError(LibraryError),
MissingRatchetTree,
MissingExternalPub,
UnsupportedCiphersuite,
PublicGroupError(CreationFromExternalError<StorageError>),
StorageError(StorageError),
InvalidProposal(ValidationError),
}
Expand description
Error type for the ExternalCommitBuilder
.
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.
PublicGroupError(CreationFromExternalError<StorageError>)
This error indicates the public tree is invalid. See
CreationFromExternalError
for more details.
StorageError(StorageError)
An error occurred when writing group to storage
InvalidProposal(ValidationError)
Error validating proposals.
Trait Implementations§
Source§impl<StorageError: Debug> Debug for ExternalCommitBuilderError<StorageError>
impl<StorageError: Debug> Debug for ExternalCommitBuilderError<StorageError>
Source§impl<StorageError> Display for ExternalCommitBuilderError<StorageError>where
CreationFromExternalError<StorageError>: Display,
impl<StorageError> Display for ExternalCommitBuilderError<StorageError>where
CreationFromExternalError<StorageError>: Display,
Source§impl<StorageError> Error for ExternalCommitBuilderError<StorageError>
impl<StorageError> Error for ExternalCommitBuilderError<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<CreationFromExternalError<StorageError>> for ExternalCommitBuilderError<StorageError>
impl<StorageError> From<CreationFromExternalError<StorageError>> for ExternalCommitBuilderError<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<LibraryError> for ExternalCommitBuilderError<StorageError>
impl<StorageError> From<LibraryError> for ExternalCommitBuilderError<StorageError>
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<ValidationError> for ExternalCommitBuilderError<StorageError>
impl<StorageError> From<ValidationError> for ExternalCommitBuilderError<StorageError>
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<StorageError> Freeze for ExternalCommitBuilderError<StorageError>where
StorageError: Freeze,
impl<StorageError> RefUnwindSafe for ExternalCommitBuilderError<StorageError>where
StorageError: RefUnwindSafe,
impl<StorageError> Send for ExternalCommitBuilderError<StorageError>where
StorageError: Send,
impl<StorageError> Sync for ExternalCommitBuilderError<StorageError>where
StorageError: Sync,
impl<StorageError> Unpin for ExternalCommitBuilderError<StorageError>where
StorageError: Unpin,
impl<StorageError> UnwindSafe for ExternalCommitBuilderError<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> 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