#[repr(i32)]pub enum ModuleError {
InvalidImage = -1,
NotCached = -2,
NotFound = -3,
}Expand description
Errors that can be emitted when compiling a program into a module.
Variants§
InvalidImage = -1
The supplied code was invalid.
NotCached = -2
No module with the given identifier has been compiled yet.
NotFound = -3
No code was found at the supplied storage key.
Trait Implementations§
Source§impl Debug for ModuleError
impl Debug for ModuleError
impl Eq for ModuleError
Source§impl From<ModuleError> for i64
impl From<ModuleError> for i64
Source§fn from(error: ModuleError) -> Self
fn from(error: ModuleError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleError> for i32
impl From<ModuleError> for i32
Source§fn from(enum_value: ModuleError) -> Self
fn from(enum_value: ModuleError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModuleError
impl PartialEq for ModuleError
Source§fn eq(&self, other: &ModuleError) -> bool
fn eq(&self, other: &ModuleError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModuleError
Source§impl TryFrom<i32> for ModuleError
impl TryFrom<i32> for ModuleError
Source§type Error = TryFromPrimitiveError<ModuleError>
type Error = TryFromPrimitiveError<ModuleError>
The type returned in the event of a conversion error.
Source§impl TryFrom<i64> for ModuleError
impl TryFrom<i64> for ModuleError
Source§impl TryFromPrimitive for ModuleError
impl TryFromPrimitive for ModuleError
const NAME: &'static str = "ModuleError"
type Primitive = i32
type Error = TryFromPrimitiveError<ModuleError>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for ModuleError
impl RefUnwindSafe for ModuleError
impl Send for ModuleError
impl Sync for ModuleError
impl Unpin for ModuleError
impl UnsafeUnpin for ModuleError
impl UnwindSafe for ModuleError
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