Enum openmls::key_packages::errors::KeyPackageVerifyError
source · pub enum KeyPackageVerifyError {
LibraryError(LibraryError),
InvalidLifetime,
MissingLifetime,
UnsupportedExtension,
InvalidSignature,
InvalidLeafNodeSignature,
InvalidLeafNodeSourceType,
InitKeyEqualsEncryptionKey,
InvalidProtocolVersion,
}
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 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 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)>
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<KeyPackageVerifyError> for KeyPackageVerifyError
impl PartialEq<KeyPackageVerifyError> for KeyPackageVerifyError
source§fn eq(&self, other: &KeyPackageVerifyError) -> bool
fn eq(&self, other: &KeyPackageVerifyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyPackageVerifyError
Auto Trait Implementations§
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