pub enum PublicKeyDecodeError {
InvalidHex(String),
InvalidLength {
len: usize,
},
Validation(String),
}Expand description
Error returned by the typed ingestion helpers
decode_public_key_hex / decode_public_key_bytes.
Variants§
InvalidHex(String)
The input hex string failed to decode.
InvalidLength
The decoded byte length does not match any supported curve (32 Ed25519, 33 or 65 P-256).
Validation(String)
DevicePublicKey::try_new rejected the bytes even after curve
inference succeeded.
Trait Implementations§
Source§impl Clone for PublicKeyDecodeError
impl Clone for PublicKeyDecodeError
Source§fn clone(&self) -> PublicKeyDecodeError
fn clone(&self) -> PublicKeyDecodeError
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 PublicKeyDecodeError
impl Debug for PublicKeyDecodeError
Source§impl Display for PublicKeyDecodeError
impl Display for PublicKeyDecodeError
impl Eq for PublicKeyDecodeError
Source§impl Error for PublicKeyDecodeError
impl Error for PublicKeyDecodeError
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 PartialEq for PublicKeyDecodeError
impl PartialEq for PublicKeyDecodeError
Source§fn eq(&self, other: &PublicKeyDecodeError) -> bool
fn eq(&self, other: &PublicKeyDecodeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublicKeyDecodeError
Auto Trait Implementations§
impl Freeze for PublicKeyDecodeError
impl RefUnwindSafe for PublicKeyDecodeError
impl Send for PublicKeyDecodeError
impl Sync for PublicKeyDecodeError
impl Unpin for PublicKeyDecodeError
impl UnsafeUnpin for PublicKeyDecodeError
impl UnwindSafe for PublicKeyDecodeError
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.