Enum openmls::treesync::errors::PublicTreeError
source · pub enum PublicTreeError {
LibraryError(LibraryError),
PublicKeyMismatch,
DuplicateKeyPackage,
MissingKeyPackage,
MalformedTree,
InvalidParentHash,
IdentityMismatch,
SignatureError(SignatureError),
}
Expand description
Public tree error
Variants§
LibraryError(LibraryError)
See LibraryError
for more details.
PublicKeyMismatch
The derived public key doesn’t match the one in the tree.
DuplicateKeyPackage
Found two KeyPackages with the same public key.
MissingKeyPackage
Couldn’t find our own key package in this tree.
MalformedTree
The tree is malformed.
InvalidParentHash
A parent hash was invalid.
IdentityMismatch
An update failed because the provided credential has a different identity than the one in the leaf node.
SignatureError(SignatureError)
See SignatureError
for more details.
Trait Implementations§
source§impl Clone for PublicTreeError
impl Clone for PublicTreeError
source§fn clone(&self) -> PublicTreeError
fn clone(&self) -> PublicTreeError
Returns a copy 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 Debug for PublicTreeError
impl Debug for PublicTreeError
source§impl Display for PublicTreeError
impl Display for PublicTreeError
source§impl Error for PublicTreeError
impl Error for PublicTreeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<LibraryError> for PublicTreeError
impl From<LibraryError> for PublicTreeError
source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
source§impl<KeyStoreError> From<PublicTreeError> for CreateCommitError<KeyStoreError>
impl<KeyStoreError> From<PublicTreeError> for CreateCommitError<KeyStoreError>
source§fn from(source: PublicTreeError) -> Self
fn from(source: PublicTreeError) -> Self
Converts to this type from the input type.
source§impl<KeyStoreError> From<PublicTreeError> for ProposeSelfUpdateError<KeyStoreError>
impl<KeyStoreError> From<PublicTreeError> for ProposeSelfUpdateError<KeyStoreError>
source§fn from(source: PublicTreeError) -> Self
fn from(source: PublicTreeError) -> Self
Converts to this type from the input type.
source§impl From<PublicTreeError> for TreeSyncFromNodesError
impl From<PublicTreeError> for TreeSyncFromNodesError
source§fn from(source: PublicTreeError) -> Self
fn from(source: PublicTreeError) -> Self
Converts to this type from the input type.
source§impl<KeyStoreError> From<PublicTreeError> for WelcomeError<KeyStoreError>
impl<KeyStoreError> From<PublicTreeError> for WelcomeError<KeyStoreError>
source§fn from(source: PublicTreeError) -> Self
fn from(source: PublicTreeError) -> Self
Converts to this type from the input type.
source§impl From<SignatureError> for PublicTreeError
impl From<SignatureError> for PublicTreeError
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
source§impl PartialEq<PublicTreeError> for PublicTreeError
impl PartialEq<PublicTreeError> for PublicTreeError
source§fn eq(&self, other: &PublicTreeError) -> bool
fn eq(&self, other: &PublicTreeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PublicTreeError
impl StructuralEq for PublicTreeError
impl StructuralPartialEq for PublicTreeError
Auto Trait Implementations§
impl RefUnwindSafe for PublicTreeError
impl Send for PublicTreeError
impl Sync for PublicTreeError
impl Unpin for PublicTreeError
impl UnwindSafe for PublicTreeError
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