pub enum BalanceError {
InputsTotalFailed(ValueError),
OutputsTotalFailed(ValueError),
NotBalanced {
inputs: Value,
outputs: Value,
},
}
Variants§
Trait Implementations§
source§impl Clone for BalanceError
impl Clone for BalanceError
source§fn clone(&self) -> BalanceError
fn clone(&self) -> BalanceError
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 Debug for BalanceError
impl Debug for BalanceError
source§impl Display for BalanceError
impl Display for BalanceError
source§impl Error for BalanceError
impl Error for BalanceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<BalanceError> for Error
impl From<BalanceError> for Error
source§fn from(source: BalanceError) -> Self
fn from(source: BalanceError) -> Self
Converts to this type from the input type.
source§impl PartialEq<BalanceError> for BalanceError
impl PartialEq<BalanceError> for BalanceError
source§fn eq(&self, other: &BalanceError) -> bool
fn eq(&self, other: &BalanceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BalanceError
impl StructuralEq for BalanceError
impl StructuralPartialEq for BalanceError
Auto Trait Implementations§
impl RefUnwindSafe for BalanceError
impl Send for BalanceError
impl Sync for BalanceError
impl Unpin for BalanceError
impl UnwindSafe for BalanceError
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