Enum odra_modules::erc1155::errors::Error
source · pub enum Error {
AccountsAndIdsLengthMismatch,
ApprovalForSelf,
NotAnOwnerOrApproved,
InsufficientBalance,
TransferRejected,
IdsAndAmountsLengthMismatch,
}Expand description
Possible errors in the context of Erc1155.
Variants§
AccountsAndIdsLengthMismatch
Collections of addresses and token ids have different length.
ApprovalForSelf
The owner cannot approve himself.
NotAnOwnerOrApproved
The operator is not allowed to perform the action.
InsufficientBalance
Insufficient token amount to perform a transaction.
TransferRejected
Token transfer finished with an error.
IdsAndAmountsLengthMismatch
Collections of token ids and amounts have different length.
Trait Implementations§
source§impl From<Error> for ExecutionError
impl From<Error> for ExecutionError
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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