Enum casper_types::crypto::Error
source · #[non_exhaustive]pub enum Error {
AsymmetricKey(String),
FromHex(DecodeError),
FromBase64(DecodeError),
SignatureError,
System(String),
}Expand description
Cryptographic errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AsymmetricKey(String)
Error resulting from creating or using asymmetric key types.
FromHex(DecodeError)
Error resulting when decoding a type from a hex-encoded representation.
FromBase64(DecodeError)
Error resulting when decoding a type from a base64 representation.
SignatureError
Signature error.
System(String)
Error trying to manipulate the system key.
Trait Implementations§
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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