Enum wasmtime_provider::errors::Error
source · pub enum Error {
InitializationFailed(Box<dyn Error + Send + Sync>),
InitializationFailedTimeout(String),
GuestCallNotFound,
WasiDisabled,
WasiInitCtxError(String),
LinkerFuncDef {
func: String,
err: String,
},
BuilderInvalidConfig(String),
Generic(Error),
}Expand description
This crate’s Error type
Variants
InitializationFailed(Box<dyn Error + Send + Sync>)
Wasmtime initialization failed
InitializationFailedTimeout(String)
Wasmtime initialization failed
GuestCallNotFound
The guest call function was not exported by the guest.
WasiDisabled
Error originating when wasi feature is disabled, but the user provides wasi related params
WasiInitCtxError(String)
Error originating when wasi context initialization fails
LinkerFuncDef
Error caused when a host function cannot be registered into a wasmtime::Linker
BuilderInvalidConfig(String)
Error caused by an invalid configuration of the [WasmtimeEngineProviderBuilder]
Generic(Error)
Generic error
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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()
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
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read more