pub struct InsufficientLiquidCycleBalance {
pub available: u128,
pub required: u128,
}Expand description
Represents an error that occurs when the liquid cycle balance is insufficient to perform the call.
The liquid cycle balance is determined by canister_liquid_cycle_balance.
The cost of the call is determined by Call::get_cost.
The call won’t be performed if the former is less than the latter.
Fields§
§available: u128The liquid cycle balance available in the canister.
required: u128The required cycles to perform the call.
Trait Implementations§
Source§impl CallErrorExt for InsufficientLiquidCycleBalance
impl CallErrorExt for InsufficientLiquidCycleBalance
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 InsufficientLiquidCycleBalance
impl Clone for InsufficientLiquidCycleBalance
Source§fn clone(&self) -> InsufficientLiquidCycleBalance
fn clone(&self) -> InsufficientLiquidCycleBalance
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 Error for InsufficientLiquidCycleBalance
impl Error for InsufficientLiquidCycleBalance
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<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.
Source§impl From<InsufficientLiquidCycleBalance> for Error
impl From<InsufficientLiquidCycleBalance> for Error
Source§fn from(source: InsufficientLiquidCycleBalance) -> Self
fn from(source: InsufficientLiquidCycleBalance) -> 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.
Auto Trait Implementations§
impl Freeze for InsufficientLiquidCycleBalance
impl RefUnwindSafe for InsufficientLiquidCycleBalance
impl Send for InsufficientLiquidCycleBalance
impl Sync for InsufficientLiquidCycleBalance
impl Unpin for InsufficientLiquidCycleBalance
impl UnwindSafe for InsufficientLiquidCycleBalance
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