pub enum NFTPixelboardError {
Show 19 variants
ZeroWidthOrHeight,
ZeroAddress,
ZeroBlockSideLength,
WrongResolution,
WrongCommissionPercentage,
WrongPaintingLength,
PixelPriceExceeded,
NFTNotFoundById,
NFTNotFountByRectangle,
NFTIsNotOnSale,
NotOwner,
CoordinatesNotObserveBlockLayout,
CoordinatesWithWrongCorners,
CoordinatesOutOfCanvas,
CoordinatesCollision,
PreviousTxMustBeCompleted,
NFTTransferFailed,
FTokensTransferFailed,
NFTMintFailed,
}
Expand description
A result of processed NFTPixelboardAction
in case of failure.
Variants§
ZeroWidthOrHeight
ZeroAddress
ZeroBlockSideLength
WrongResolution
WrongCommissionPercentage
WrongPaintingLength
PixelPriceExceeded
NFTNotFoundById
NFTNotFountByRectangle
NFTIsNotOnSale
NotOwner
CoordinatesNotObserveBlockLayout
CoordinatesWithWrongCorners
CoordinatesOutOfCanvas
CoordinatesCollision
PreviousTxMustBeCompleted
NFTTransferFailed
FTokensTransferFailed
NFTMintFailed
Trait Implementations§
source§impl Decode for NFTPixelboardError
impl Decode for NFTPixelboardError
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for NFTPixelboardError
impl Encode for NFTPixelboardError
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl TypeInfo for NFTPixelboardError
impl TypeInfo for NFTPixelboardError
impl EncodeLike for NFTPixelboardError
Auto Trait Implementations§
impl Freeze for NFTPixelboardError
impl RefUnwindSafe for NFTPixelboardError
impl Send for NFTPixelboardError
impl Sync for NFTPixelboardError
impl Unpin for NFTPixelboardError
impl UnwindSafe for NFTPixelboardError
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.