pub enum CyclesConversionError {
NatOverflow {
value: Nat,
},
}Expand description
CyclesConversionError
Typed failure while converting an unbounded Candid cycle amount.
Owned by the cycle value boundary and preserved by callers that narrow Nat.
Variants§
Trait Implementations§
Source§impl Clone for CyclesConversionError
impl Clone for CyclesConversionError
Source§fn clone(&self) -> CyclesConversionError
fn clone(&self) -> CyclesConversionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CyclesConversionError
impl Debug for CyclesConversionError
Source§impl Display for CyclesConversionError
impl Display for CyclesConversionError
impl Eq for CyclesConversionError
Source§impl Error for CyclesConversionError
impl Error for CyclesConversionError
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 PartialEq for CyclesConversionError
impl PartialEq for CyclesConversionError
impl StructuralPartialEq for CyclesConversionError
Auto Trait Implementations§
impl Freeze for CyclesConversionError
impl RefUnwindSafe for CyclesConversionError
impl Send for CyclesConversionError
impl Sync for CyclesConversionError
impl Unpin for CyclesConversionError
impl UnsafeUnpin for CyclesConversionError
impl UnwindSafe for CyclesConversionError
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