pub enum KeyPackageVerifyError {
LibraryError(LibraryError),
InvalidLifetime,
MissingLifetime,
UnsupportedExtension,
InvalidSignature,
InvalidLeafNodeSignature,
InvalidLeafNodeSourceType,
InitKeyEqualsEncryptionKey,
InvalidProtocolVersion,
}Available on 32-bit or 64-bit only.
Expand description
KeyPackage verify error
Variants§
LibraryError(LibraryError)
See LibraryError for more details.
InvalidLifetime
The lifetime of the leaf node is not valid.
MissingLifetime
The lifetime of the leaf node is missing.
UnsupportedExtension
A key package extension is not supported in the leaf’s capabilities.
InvalidSignature
The key package signature is not valid.
InvalidLeafNodeSignature
The leaf node signature is not valid.
InvalidLeafNodeSourceType
Invalid LeafNode source type
InitKeyEqualsEncryptionKey
The init key and the encryption key are equal.
InvalidProtocolVersion
The protocol version is not valid.
Trait Implementations§
Source§impl Clone for KeyPackageVerifyError
impl Clone for KeyPackageVerifyError
Source§fn clone(&self) -> KeyPackageVerifyError
fn clone(&self) -> KeyPackageVerifyError
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 Debug for KeyPackageVerifyError
impl Debug for KeyPackageVerifyError
Source§impl Display for KeyPackageVerifyError
impl Display for KeyPackageVerifyError
Source§impl Error for KeyPackageVerifyError
impl Error for KeyPackageVerifyError
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<KeyPackageVerifyError> for ValidationError
impl From<KeyPackageVerifyError> for ValidationError
Source§fn from(source: KeyPackageVerifyError) -> Self
fn from(source: KeyPackageVerifyError) -> Self
Converts to this type from the input type.
Source§impl From<LibraryError> for KeyPackageVerifyError
impl From<LibraryError> for KeyPackageVerifyError
Source§fn from(source: LibraryError) -> Self
fn from(source: LibraryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeyPackageVerifyError
impl PartialEq for KeyPackageVerifyError
impl StructuralPartialEq for KeyPackageVerifyError
Auto Trait Implementations§
impl Freeze for KeyPackageVerifyError
impl RefUnwindSafe for KeyPackageVerifyError
impl Send for KeyPackageVerifyError
impl Sync for KeyPackageVerifyError
impl Unpin for KeyPackageVerifyError
impl UnwindSafe for KeyPackageVerifyError
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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