pub enum InvalidKeyError {
InvalidLength {
curve: CurveType,
expected: &'static str,
actual: usize,
},
}Expand description
Error returned when constructing a DevicePublicKey with invalid key material.
Variants§
InvalidLength
The byte length is wrong for the specified curve.
Trait Implementations§
Source§impl Clone for InvalidKeyError
impl Clone for InvalidKeyError
Source§fn clone(&self) -> InvalidKeyError
fn clone(&self) -> InvalidKeyError
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 InvalidKeyError
impl Debug for InvalidKeyError
Source§impl Display for InvalidKeyError
impl Display for InvalidKeyError
impl Eq for InvalidKeyError
Source§impl Error for InvalidKeyError
impl Error for InvalidKeyError
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 InvalidKeyError
impl PartialEq for InvalidKeyError
Source§fn eq(&self, other: &InvalidKeyError) -> bool
fn eq(&self, other: &InvalidKeyError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InvalidKeyError
Auto Trait Implementations§
impl Freeze for InvalidKeyError
impl RefUnwindSafe for InvalidKeyError
impl Send for InvalidKeyError
impl Sync for InvalidKeyError
impl Unpin for InvalidKeyError
impl UnsafeUnpin for InvalidKeyError
impl UnwindSafe for InvalidKeyError
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.