pub(crate) enum InternalError {
PointDecompression,
ScalarFormat,
BytesLength {
name: &'static str,
length: usize,
},
Verify,
MismatchedKeypair,
}Expand description
Internal errors. Most application-level developers will likely not need to pay any attention to these.
Variants§
PointDecompression
ScalarFormat
BytesLength
An error in the length of bytes handed to a constructor.
To use this, pass a string specifying the name of the type which is
returning the error, and the length in bytes which its constructor
expects.
Verify
The verification equation wasn’t satisfied
MismatchedKeypair
A mismatched (public, secret) key pair.
Trait Implementations§
Source§impl Clone for InternalError
impl Clone for InternalError
Source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InternalError
impl Debug for InternalError
Source§impl Display for InternalError
impl Display for InternalError
Source§impl Error for InternalError
impl Error for InternalError
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<InternalError> for SignatureError
impl From<InternalError> for SignatureError
Source§fn from(err: InternalError) -> SignatureError
fn from(err: InternalError) -> SignatureError
Converts to this type from the input type.
Source§impl Hash for InternalError
impl Hash for InternalError
Source§impl PartialEq for InternalError
impl PartialEq for InternalError
impl Copy for InternalError
impl Eq for InternalError
impl StructuralPartialEq for InternalError
Auto Trait Implementations§
impl Freeze for InternalError
impl RefUnwindSafe for InternalError
impl Send for InternalError
impl Sync for InternalError
impl Unpin for InternalError
impl UnsafeUnpin for InternalError
impl UnwindSafe for InternalError
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