Enum odra_modules::erc721::errors::Error
source · pub enum Error {
InvalidTokenId,
NotAnOwnerOrApproved,
ApprovalToCurrentOwner,
ApproveToCaller,
TransferFailed,
}Expand description
Possible errors in the context of Erc721 token.
Variants§
InvalidTokenId
Token is invalid in the given context or does not exist.
NotAnOwnerOrApproved
Address in not eligible to operate on the token.
ApprovalToCurrentOwner
The owner cannot be approved.
ApproveToCaller
The caller cannot approve self.
TransferFailed
Token transfer ends with an error
Trait Implementations§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
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