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§
source§impl Debug for ModuleInfoError
impl Debug for ModuleInfoError
source§impl Display for ModuleInfoError
impl Display for ModuleInfoError
source§impl Error for ModuleInfoError
impl Error for ModuleInfoError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ManifestError> for ModuleInfoError
impl From<ManifestError> for ModuleInfoError
source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
source§impl From<SDKVersionError> for ModuleInfoError
impl From<SDKVersionError> for ModuleInfoError
source§fn 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§
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