pub enum OnewayError {
InsufficientLiquidCycleBalance(InsufficientLiquidCycleBalance),
CallPerformFailed(CallPerformFailed),
}Expand description
The error type of Call::oneway.
This encapsulates all possible errors that can occur when sending a oneway call.
Therefore, it includes the InsufficientLiquidCycleBalance and CallPerformFailed variants.
Variants§
InsufficientLiquidCycleBalance(InsufficientLiquidCycleBalance)
The liquid cycle balance is insufficient to perform the call.
CallPerformFailed(CallPerformFailed)
The ic0.call_perform operation failed.
Trait Implementations§
Source§impl CallErrorExt for OnewayError
impl CallErrorExt for OnewayError
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 OnewayError
impl Clone for OnewayError
Source§fn clone(&self) -> OnewayError
fn clone(&self) -> OnewayError
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 OnewayError
impl Debug for OnewayError
Source§impl Display for OnewayError
impl Display for OnewayError
Source§impl Error for OnewayError
impl Error for OnewayError
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<CallPerformFailed> for OnewayError
impl From<CallPerformFailed> for OnewayError
Source§fn from(source: CallPerformFailed) -> Self
fn from(source: CallPerformFailed) -> Self
Converts to this type from the input type.
Source§impl From<InsufficientLiquidCycleBalance> for OnewayError
impl From<InsufficientLiquidCycleBalance> for OnewayError
Source§fn from(source: InsufficientLiquidCycleBalance) -> Self
fn from(source: InsufficientLiquidCycleBalance) -> Self
Converts to this type from the input type.
Source§impl From<OnewayError> for Error
impl From<OnewayError> for Error
Source§fn from(e: OnewayError) -> Self
fn from(e: OnewayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnewayError
impl RefUnwindSafe for OnewayError
impl Send for OnewayError
impl Sync for OnewayError
impl Unpin for OnewayError
impl UnwindSafe for OnewayError
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