pub enum ExecutorError {
BinaryLoadFailed(String),
ChecksumMismatch {
expected: String,
actual: String,
},
RuntimeSetupFailed(String),
MalformedWasmArtifact {
error_code: String,
detail: String,
},
UnsupportedAbiVersion {
error_code: String,
requested: String,
supported: String,
},
UnauthorizedHostImport {
error_code: String,
abi_version: String,
module: String,
name: String,
},
ExecutionFailed(String),
Timeout(String),
ResourceExhausted(String),
OutputDeserializationFailed(String),
UnsupportedArtifactType,
}Expand description
Error returned by a CapabilityExecutor.
Variants§
BinaryLoadFailed(String)
The WASM binary could not be loaded from the given path.
ChecksumMismatch
The SHA-256 checksum of the loaded binary did not match the expected value.
RuntimeSetupFailed(String)
The Wasmtime engine or linker could not be configured.
MalformedWasmArtifact
The WASM artifact is malformed and cannot be parsed as a module.
UnsupportedAbiVersion
The WASM artifact declares an unsupported Traverse Host ABI version.
The WASM artifact imports a host function outside the declared ABI whitelist.
Fields
ExecutionFailed(String)
The WASM module trapped or returned a non-zero exit code.
Timeout(String)
WASM execution exhausted its configured CPU budget.
ResourceExhausted(String)
WASM execution exceeded its configured memory, table, or instance budget.
OutputDeserializationFailed(String)
The executor produced output that could not be parsed as JSON.
UnsupportedArtifactType
The executor type does not support the requested capability.
Trait Implementations§
Source§impl Clone for ExecutorError
impl Clone for ExecutorError
Source§fn clone(&self) -> ExecutorError
fn clone(&self) -> ExecutorError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutorError
impl Debug for ExecutorError
Source§impl Display for ExecutorError
impl Display for ExecutorError
impl Eq for ExecutorError
Source§impl Error for ExecutorError
impl Error for ExecutorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ExecutorError
impl PartialEq for ExecutorError
impl StructuralPartialEq for ExecutorError
Auto Trait Implementations§
impl Freeze for ExecutorError
impl RefUnwindSafe for ExecutorError
impl Send for ExecutorError
impl Sync for ExecutorError
impl Unpin for ExecutorError
impl UnsafeUnpin for ExecutorError
impl UnwindSafe for ExecutorError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§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,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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