#[repr(i32)]
pub enum Error {
Show 27 variants
NoError,
SpanTooSmallError,
ValidationError,
DeserializationError,
SerializationError,
InvalidImportsError,
InvalidExportsError,
BadMemorySectionError,
GasCounterInjectionError,
StackHeightInjectionError,
InstantiationError,
RuntimeError,
OutOfGasError,
BadEntrySignatureError,
MemoryOutOfBoundError,
UninitializedContextData,
ChecksumLengthNotMatch,
DataLengthOutOfBound,
ConvertTypeOutOfBound,
WrongPeriodActionError,
TooManyExternalDataError,
DuplicateExternalIDError,
BadValidatorIndexError,
BadExternalIDError,
UnavailableExternalDataError,
RepeatSetReturnDataError,
UnknownError,
}Variants
NoError
SpanTooSmallError
ValidationError
DeserializationError
SerializationError
InvalidImportsError
InvalidExportsError
BadMemorySectionError
GasCounterInjectionError
StackHeightInjectionError
InstantiationError
RuntimeError
OutOfGasError
BadEntrySignatureError
MemoryOutOfBoundError
UninitializedContextData
ChecksumLengthNotMatch
DataLengthOutOfBound
ConvertTypeOutOfBound
WrongPeriodActionError
TooManyExternalDataError
DuplicateExternalIDError
BadValidatorIndexError
BadExternalIDError
UnavailableExternalDataError
RepeatSetReturnDataError
UnknownError
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn 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 RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
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.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref