pub enum KeyError {
SpkiError(Error),
EllipticCurveError(EllipticCurveError),
SignatureError(SignatureError),
AeadError(AeadError),
NonceLengthError(ReceivedExpectedError<usize, usize>),
UnsupportedOperation,
}Expand description
Errors from key provider operations.
Variants§
SpkiError(Error)
SPKI encoding/decoding error
EllipticCurveError(EllipticCurveError)
Elliptic curve operation error
SignatureError(SignatureError)
Signature/ECDSA error (e.g., invalid key bytes)
AeadError(AeadError)
AEAD encryption/decryption error
NonceLengthError(ReceivedExpectedError<usize, usize>)
Nonce length mismatch
UnsupportedOperation
Operation not supported by this key provider
Trait Implementations§
Source§impl Error for KeyError
impl Error for KeyError
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<Error> for KeyError
impl From<Error> for KeyError
Source§fn from(err: EllipticCurveError) -> Self
fn from(err: EllipticCurveError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for KeyError
impl From<Error> for KeyError
Source§fn from(err: SignatureError) -> Self
fn from(err: SignatureError) -> Self
Converts to this type from the input type.
Source§impl From<HandshakeError> for KeyError
impl From<HandshakeError> for KeyError
Source§fn from(err: HandshakeError) -> Self
fn from(err: HandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<KeyError> for EllipticCurveError
impl From<KeyError> for EllipticCurveError
Source§impl From<KeyError> for SignatureError
impl From<KeyError> for SignatureError
Source§impl From<KeyError> for HandshakeError
impl From<KeyError> for HandshakeError
Source§impl From<KeyError> for TightBeamError
impl From<KeyError> for TightBeamError
Source§impl From<TightBeamError> for KeyError
impl From<TightBeamError> for KeyError
Source§fn from(err: TightBeamError) -> Self
fn from(err: TightBeamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyError
impl !RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
impl !UnwindSafe for KeyError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more