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)>
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 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 From<PublicTreeError> for CreateCommitError
impl From<PublicTreeError> for CreateCommitError
Source§fn from(source: PublicTreeError) -> Self
fn from(source: PublicTreeError) -> Self
Converts to this type from the input type.
Source§impl<StorageError> From<PublicTreeError> for ProposeSelfUpdateError<StorageError>
impl<StorageError> From<PublicTreeError> for ProposeSelfUpdateError<StorageError>
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<StorageError> From<PublicTreeError> for WelcomeError<StorageError>
impl<StorageError> From<PublicTreeError> for WelcomeError<StorageError>
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 for PublicTreeError
impl PartialEq for PublicTreeError
impl Eq for PublicTreeError
impl StructuralPartialEq for PublicTreeError
Auto Trait Implementations§
impl Freeze for PublicTreeError
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
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