pub enum DeviceKeyError {
UnsupportedKeyType,
MalformedCoordinates,
NotOnCurve,
}Expand description
Why a cnf.jwk is not a usable device key.
Variants§
UnsupportedKeyType
The key is not an EC P-256 key.
MalformedCoordinates
A coordinate is not base64url or is longer than P-256 allows.
NotOnCurve
The coordinates are not a point on the curve.
Trait Implementations§
Source§impl Clone for DeviceKeyError
impl Clone for DeviceKeyError
Source§impl Debug for DeviceKeyError
impl Debug for DeviceKeyError
Source§impl Display for DeviceKeyError
impl Display for DeviceKeyError
impl Eq for DeviceKeyError
Source§impl Error for DeviceKeyError
impl Error for DeviceKeyError
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<DeviceKeyError> for TokenError
impl From<DeviceKeyError> for TokenError
Source§fn from(source: DeviceKeyError) -> Self
fn from(source: DeviceKeyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeviceKeyError
impl PartialEq for DeviceKeyError
impl StructuralPartialEq for DeviceKeyError
Auto Trait Implementations§
impl Freeze for DeviceKeyError
impl RefUnwindSafe for DeviceKeyError
impl Send for DeviceKeyError
impl Sync for DeviceKeyError
impl Unpin for DeviceKeyError
impl UnsafeUnpin for DeviceKeyError
impl UnwindSafe for DeviceKeyError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.