pub enum SignCallError {
SignCostError(SignCostError),
CallFailed(CallFailed),
CandidDecodeFailed(CandidDecodeFailed),
}Expand description
The error type for the sign_with_ecdsa and sign_with_schnorr functions.
Variants§
SignCostError(SignCostError)
The signature cost calculation failed.
CallFailed(CallFailed)
Failed to make the inter-canister call to the management canister.
CandidDecodeFailed(CandidDecodeFailed)
Failed to decode the response from the management canister.
Trait Implementations§
Source§impl Clone for SignCallError
impl Clone for SignCallError
Source§fn clone(&self) -> SignCallError
fn clone(&self) -> SignCallError
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 SignCallError
impl Debug for SignCallError
Source§impl Display for SignCallError
impl Display for SignCallError
Source§impl Error for SignCallError
impl Error for SignCallError
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<CallFailed> for SignCallError
impl From<CallFailed> for SignCallError
Source§fn from(source: CallFailed) -> SignCallError
fn from(source: CallFailed) -> SignCallError
Converts to this type from the input type.
Source§impl From<CandidDecodeFailed> for SignCallError
impl From<CandidDecodeFailed> for SignCallError
Source§fn from(source: CandidDecodeFailed) -> SignCallError
fn from(source: CandidDecodeFailed) -> SignCallError
Converts to this type from the input type.
Source§impl From<SignCostError> for SignCallError
impl From<SignCostError> for SignCallError
Source§fn from(source: SignCostError) -> SignCallError
fn from(source: SignCostError) -> SignCallError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignCallError
impl RefUnwindSafe for SignCallError
impl Send for SignCallError
impl Sync for SignCallError
impl Unpin for SignCallError
impl UnwindSafe for SignCallError
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