#[repr(i32)]pub enum Error {
Show 27 variants
NoError = 0,
SpanTooSmallError = 1,
ValidationError = 2,
DeserializationError = 3,
SerializationError = 4,
InvalidImportsError = 5,
InvalidExportsError = 6,
BadMemorySectionError = 7,
GasCounterInjectionError = 8,
StackHeightInjectionError = 9,
InstantiationError = 10,
RuntimeError = 11,
OutOfGasError = 12,
BadEntrySignatureError = 13,
MemoryOutOfBoundError = 14,
UninitializedContextData = 15,
ChecksumLengthNotMatch = 16,
DataLengthOutOfBound = 17,
ConvertTypeOutOfBound = 18,
WrongPeriodActionError = 128,
TooManyExternalDataError = 129,
DuplicateExternalIDError = 130,
BadValidatorIndexError = 131,
BadExternalIDError = 132,
UnavailableExternalDataError = 133,
RepeatSetReturnDataError = 134,
UnknownError = 255,
}
Variants§
NoError = 0
SpanTooSmallError = 1
ValidationError = 2
DeserializationError = 3
SerializationError = 4
InvalidImportsError = 5
InvalidExportsError = 6
BadMemorySectionError = 7
GasCounterInjectionError = 8
StackHeightInjectionError = 9
InstantiationError = 10
RuntimeError = 11
OutOfGasError = 12
BadEntrySignatureError = 13
MemoryOutOfBoundError = 14
UninitializedContextData = 15
ChecksumLengthNotMatch = 16
DataLengthOutOfBound = 17
ConvertTypeOutOfBound = 18
WrongPeriodActionError = 128
TooManyExternalDataError = 129
DuplicateExternalIDError = 130
BadValidatorIndexError = 131
BadExternalIDError = 132
RepeatSetReturnDataError = 134
UnknownError = 255
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy 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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref