pub enum SignCostError {
InvalidCurveOrAlgorithm,
InvalidKeyName,
UnrecognizedError(u32),
}Expand description
The error type for cost_sign_with_ecdsa and cost_sign_with_schnorr.
Variants§
InvalidCurveOrAlgorithm
The ECDSA/vetKD curve or Schnorr algorithm is invalid.
InvalidKeyName
The key name is invalid for the provided curve or algorithm.
UnrecognizedError(u32)
Unrecognized error.
This error is returned when the System API returns an unrecognized error code. Please report to ic-cdk maintainers.
Trait Implementations§
Source§impl Clone for SignCostError
impl Clone for SignCostError
Source§fn clone(&self) -> SignCostError
fn clone(&self) -> SignCostError
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 SignCostError
impl Debug for SignCostError
Source§impl Display for SignCostError
impl Display for SignCostError
Source§impl Error for SignCostError
impl Error for SignCostError
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<SignCostError> for SignCallError
impl From<SignCostError> for SignCallError
Source§fn from(source: SignCostError) -> Self
fn from(source: SignCostError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignCostError
impl RefUnwindSafe for SignCostError
impl Send for SignCostError
impl Sync for SignCostError
impl Unpin for SignCostError
impl UnwindSafe for SignCostError
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