pub enum ErrorKind {
InvalidPrefix,
InvalidKeyLength,
VerifyError,
SignatureError,
ChecksumFailure,
CodecFailure,
IncorrectKeyType,
InvalidPayload,
InvalidSignatureLength,
}
Expand description
Provides context as to how a particular nkeys error might have occurred
Variants§
InvalidPrefix
Indicates an inappropriate byte prefix was used for an encoded key string
InvalidKeyLength
Indicates a key string was used with the wrong length
VerifyError
Indicates a signature verification mismatch. Use this to check for invalid signatures or messages
SignatureError
Indicates an unexpected underlying error occurred while trying to perform routine signature tasks.
ChecksumFailure
Indicates a checksum mismatch occurred while validating a crc-encoded string
CodecFailure
Indicates a miscellaneous error occurred during encoding or decoding the nkey-specific formats
IncorrectKeyType
Indicates a key type mismatch, e.g. attempting to sign with only a public key
InvalidPayload
Payload not valid (or failed to be decrypted)
InvalidSignatureLength
Signature did not match the expected length (64 bytes)
Implementations§
Trait Implementations§
impl Copy for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)