pub enum AmountError {
AmountOutOfBounds(String, String),
Crate(&'static str, String),
InvalidAmount(String),
}Variants§
Trait Implementations§
Source§impl Debug for AmountError
impl Debug for AmountError
Source§impl Display for AmountError
impl Display for AmountError
Source§impl Fail for AmountError
impl Fail for AmountError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<AmountError> for TransactionError
impl From<AmountError> for TransactionError
Source§fn from(error: AmountError) -> Self
fn from(error: AmountError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AmountError
impl RefUnwindSafe for AmountError
impl Send for AmountError
impl Sync for AmountError
impl Unpin for AmountError
impl UnsafeUnpin for AmountError
impl UnwindSafe for AmountError
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