pub enum Error {
ModuleCompile {
source: SourceError,
backtrace: Backtrace,
},
Instantiation {
source: SourceError,
backtrace: Backtrace,
},
FunctionNotFound {
function: String,
backtrace: Backtrace,
},
Invocation {
function: String,
source: SourceError,
backtrace: Backtrace,
},
ExportNotFound {
export: String,
backtrace: Backtrace,
},
ArgumentType {
function: String,
backtrace: Backtrace,
},
CapabilityDenied {
reason: String,
backtrace: Backtrace,
},
HostImport {
import: String,
reason: String,
backtrace: Backtrace,
},
Engine {
source: SourceError,
backtrace: Backtrace,
},
}Variants§
ModuleCompile
Instantiation
FunctionNotFound
Invocation
ExportNotFound
ArgumentType
CapabilityDenied
HostImport
Engine
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl ErrorCompat for Error
impl ErrorCompat for Error
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl IntoError<Error> for ModuleCompileSnafu
impl IntoError<Error> for ModuleCompileSnafu
Source§impl IntoError<Error> for InstantiationSnafu
impl IntoError<Error> for InstantiationSnafu
Source§impl<__T0> IntoError<Error> for FunctionNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for FunctionNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for InvocationSnafu<__T0>
impl<__T0> IntoError<Error> for InvocationSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ExportNotFoundSnafu<__T0>
impl<__T0> IntoError<Error> for ExportNotFoundSnafu<__T0>
Source§impl<__T0> IntoError<Error> for ArgumentTypeSnafu<__T0>
impl<__T0> IntoError<Error> for ArgumentTypeSnafu<__T0>
Source§impl<__T0> IntoError<Error> for CapabilityDeniedSnafu<__T0>
impl<__T0> IntoError<Error> for CapabilityDeniedSnafu<__T0>
Source§impl<__T0, __T1> IntoError<Error> for HostImportSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<Error> for HostImportSnafu<__T0, __T1>
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> 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 more