pub enum Error {
Decode(Error),
BufferTooSmall,
OffChain(OffChainError),
ReturnError(ReturnErrorCode),
}
Expand description
Errors that can be encountered upon environmental interaction.
Variants§
Decode(Error)
Error upon decoding an encoded value.
BufferTooSmall
The static buffer used during ABI encoding or ABI decoding is too small.
OffChain(OffChainError)
An error that can only occur in the off-chain environment.
ReturnError(ReturnErrorCode)
The error returned by the contract.
Trait Implementations§
source§impl From<ReturnErrorCode> for Error
impl From<ReturnErrorCode> for Error
source§fn from(value: ReturnErrorCode) -> Self
fn from(value: ReturnErrorCode) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq 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
§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read more§impl<T, S> UniqueSaturatedInto<T> for S
impl<T, S> UniqueSaturatedInto<T> for S
§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.