pub enum CallFailed {
InsufficientLiquidCycleBalance(InsufficientLiquidCycleBalance),
CallPerformFailed(CallPerformFailed),
CallRejected(CallRejected),
}Expand description
The error type when awaiting a CallFuture.
This encapsulates all possible Error except for the CandidDecodeFailed variant.
Variants§
InsufficientLiquidCycleBalance(InsufficientLiquidCycleBalance)
The liquid cycle balance is insufficient to perform the call.
CallPerformFailed(CallPerformFailed)
The ic0.call_perform operation failed.
CallRejected(CallRejected)
The inter-canister call is rejected.
Trait Implementations§
Source§impl CallErrorExt for CallFailed
impl CallErrorExt for CallFailed
Source§fn is_clean_reject(&self) -> bool
fn is_clean_reject(&self) -> bool
Checks if the error is a clean reject.
A clean reject means that there must be no state changes on the callee side.
Source§fn is_immediately_retryable(&self) -> bool
fn is_immediately_retryable(&self) -> bool
Determines if the failed call can be retried immediately within the update method
that’s handling the error, as opposed to relying on a background timer or heartbeat. Read more
Source§impl Clone for CallFailed
impl Clone for CallFailed
Source§fn clone(&self) -> CallFailed
fn clone(&self) -> CallFailed
Returns a copy 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 CallFailed
impl Debug for CallFailed
Source§impl Display for CallFailed
impl Display for CallFailed
Source§impl Error for CallFailed
impl Error for CallFailed
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 Error
impl From<CallFailed> for Error
Source§fn from(e: CallFailed) -> Self
fn from(e: CallFailed) -> Self
Converts to this type from the input type.
Source§impl From<CallFailed> for SignCallError
impl From<CallFailed> for SignCallError
Source§fn from(source: CallFailed) -> Self
fn from(source: CallFailed) -> Self
Converts to this type from the input type.
Source§impl From<CallPerformFailed> for CallFailed
impl From<CallPerformFailed> for CallFailed
Source§fn from(source: CallPerformFailed) -> Self
fn from(source: CallPerformFailed) -> Self
Converts to this type from the input type.
Source§impl From<CallRejected> for CallFailed
impl From<CallRejected> for CallFailed
Source§fn from(source: CallRejected) -> Self
fn from(source: CallRejected) -> Self
Converts to this type from the input type.
Source§impl From<InsufficientLiquidCycleBalance> for CallFailed
impl From<InsufficientLiquidCycleBalance> for CallFailed
Source§fn from(source: InsufficientLiquidCycleBalance) -> Self
fn from(source: InsufficientLiquidCycleBalance) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CallFailed
impl RefUnwindSafe for CallFailed
impl Send for CallFailed
impl Sync for CallFailed
impl Unpin for CallFailed
impl UnwindSafe for CallFailed
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