pub enum IcpBalanceError {
InvalidAmount {
unit: &'static str,
value: String,
},
IcpAmountOverflow {
value: String,
},
Icp(IcpCommandError),
}Expand description
IcpBalanceError
Typed failure while observing an identity ledger balance through ICP CLI.
Variants§
Trait Implementations§
Source§impl Debug for IcpBalanceError
impl Debug for IcpBalanceError
Source§impl Display for IcpBalanceError
impl Display for IcpBalanceError
Source§impl Error for IcpBalanceError
impl Error for IcpBalanceError
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<IcpCommandError> for IcpBalanceError
impl From<IcpCommandError> for IcpBalanceError
Source§fn from(source: IcpCommandError) -> Self
fn from(source: IcpCommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IcpBalanceError
impl !UnwindSafe for IcpBalanceError
impl Freeze for IcpBalanceError
impl Send for IcpBalanceError
impl Sync for IcpBalanceError
impl Unpin for IcpBalanceError
impl UnsafeUnpin for IcpBalanceError
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