pub enum KeyDecodingError {
UnsupportedKeyType(KeyType),
MissingParam(Label),
InvalidParam(Label),
UnsupportedParam(Label, Value),
InvalidKey,
}Variants§
UnsupportedKeyType(KeyType)
MissingParam(Label)
InvalidParam(Label)
UnsupportedParam(Label, Value)
InvalidKey
Trait Implementations§
Source§impl Debug for KeyDecodingError
impl Debug for KeyDecodingError
Source§impl Display for KeyDecodingError
impl Display for KeyDecodingError
Source§impl Error for KeyDecodingError
impl Error for KeyDecodingError
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<InvalidPublicKey> for KeyDecodingError
impl From<InvalidPublicKey> for KeyDecodingError
Source§fn from(_value: InvalidPublicKey) -> Self
fn from(_value: InvalidPublicKey) -> Self
Converts to this type from the input type.
Source§impl From<InvalidSecretKey> for KeyDecodingError
impl From<InvalidSecretKey> for KeyDecodingError
Source§fn from(_value: InvalidSecretKey) -> Self
fn from(_value: InvalidSecretKey) -> Self
Converts to this type from the input type.
Source§impl From<KeyDecodingError> for CoseVerificationError
impl From<KeyDecodingError> for CoseVerificationError
Source§fn from(source: KeyDecodingError) -> Self
fn from(source: KeyDecodingError) -> Self
Converts to this type from the input type.
Source§impl From<KeyDecodingError> for SignatureError
impl From<KeyDecodingError> for SignatureError
Source§fn from(_value: KeyDecodingError) -> Self
fn from(_value: KeyDecodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyDecodingError
impl RefUnwindSafe for KeyDecodingError
impl Send for KeyDecodingError
impl Sync for KeyDecodingError
impl Unpin for KeyDecodingError
impl UnwindSafe for KeyDecodingError
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.