#[non_exhaustive]pub enum KeriDecodeError {
UnsupportedKeyType(String),
EmptyInput,
DecodeError(String),
InvalidLength {
expected: usize,
actual: usize,
},
}Expand description
Errors from decoding a KERI-encoded public key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedKeyType(String)
The KERI derivation code prefix was not recognized.
EmptyInput
Input string was empty; no derivation code could be read.
DecodeError(String)
Base64url decoding of the key payload failed.
InvalidLength
Decoded bytes were not the expected length for the key type.
Trait Implementations§
Source§impl AuthsErrorInfo for KeriDecodeError
impl AuthsErrorInfo for KeriDecodeError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Returns a unique error code string for this error variant.
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Returns an optional actionable suggestion for resolving the error.
Source§impl Clone for KeriDecodeError
impl Clone for KeriDecodeError
Source§fn clone(&self) -> KeriDecodeError
fn clone(&self) -> KeriDecodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KeriDecodeError
impl Debug for KeriDecodeError
Source§impl Display for KeriDecodeError
impl Display for KeriDecodeError
impl Eq for KeriDecodeError
Source§impl Error for KeriDecodeError
impl Error for KeriDecodeError
1.30.0 · 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<KeriDecodeError> for TlsCertError
impl From<KeriDecodeError> for TlsCertError
Source§fn from(source: KeriDecodeError) -> Self
fn from(source: KeriDecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeriDecodeError
impl PartialEq for KeriDecodeError
impl StructuralPartialEq for KeriDecodeError
Auto Trait Implementations§
impl Freeze for KeriDecodeError
impl RefUnwindSafe for KeriDecodeError
impl Send for KeriDecodeError
impl Sync for KeriDecodeError
impl Unpin for KeriDecodeError
impl UnsafeUnpin for KeriDecodeError
impl UnwindSafe for KeriDecodeError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.