Enum concordium_std::TransferError
source · [−]#[repr(i32)]
pub enum TransferError {
AmountTooLarge,
MissingAccount,
}
Expand description
Errors that may occur when transferring CCD to an account.
Variants
AmountTooLarge
Amount that was to be transferred is not available to the sender.
MissingAccount
Account that is to be transferred to does not exist.
Trait Implementations
sourceimpl Clone for TransferError
impl Clone for TransferError
sourcefn clone(&self) -> TransferError
fn clone(&self) -> TransferError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransferError
impl Debug for TransferError
sourceimpl From<TransferError> for Reject
impl From<TransferError> for Reject
AmountTooLarge is i32::MIN + 13, MissingAccount is i32::MIN + 14.
sourcefn from(te: TransferError) -> Self
fn from(te: TransferError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for TransferError
impl Send for TransferError
impl Sync for TransferError
impl Unpin for TransferError
impl UnwindSafe for TransferError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more