pub enum ModuleInfoError {
NoCustomSection(&'static str),
MultipleCustomSections(&'static str, usize),
VersionError(SDKVersionError),
ManifestError(ManifestError),
CorruptedWasmFile(Error),
WasmEmitError(Error),
}
Variants
NoCustomSection(&'static str)
Version section is absent.
MultipleCustomSections(&'static str, usize)
Multiple sections with the same name.
VersionError(SDKVersionError)
Errors related to corrupted version.
ManifestError(ManifestError)
Errors related to corrupted manifest.
CorruptedWasmFile(Error)
An error occurred while parsing Wasm file.
WasmEmitError(Error)
Wasm emitting file error.
Trait Implementations
sourceimpl Debug for ModuleInfoError
impl Debug for ModuleInfoError
sourceimpl Display for ModuleInfoError
impl Display for ModuleInfoError
sourceimpl Error for ModuleInfoError
impl Error for ModuleInfoError
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()
sourceimpl From<ManifestError> for ModuleInfoError
impl From<ManifestError> for ModuleInfoError
sourcefn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
sourceimpl From<SDKVersionError> for ModuleInfoError
impl From<SDKVersionError> for ModuleInfoError
sourcefn from(source: SDKVersionError) -> Self
fn from(source: SDKVersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ModuleInfoError
impl Send for ModuleInfoError
impl Sync for ModuleInfoError
impl Unpin for ModuleInfoError
impl !UnwindSafe for ModuleInfoError
Blanket Implementations
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