pub enum ExecuteOutcome {
Success {
stdout: String,
execution_ms: u64,
},
RuntimeNotFound,
ExecutionFailed {
stderr: String,
exit_code: i32,
execution_ms: u64,
},
RuntimeError {
error: String,
},
}Expand description
Result of executing the compiled WASM binary.
Variants§
Success
RuntimeNotFound
wasmtime binary is not available on PATH.
ExecutionFailed
wasmtime ran but the WASM process exited non-zero.
RuntimeError
wasmtime could not be spawned (OS error).
Trait Implementations§
Source§impl Clone for ExecuteOutcome
impl Clone for ExecuteOutcome
Source§fn clone(&self) -> ExecuteOutcome
fn clone(&self) -> ExecuteOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecuteOutcome
impl Debug for ExecuteOutcome
Source§impl<'de> Deserialize<'de> for ExecuteOutcome
impl<'de> Deserialize<'de> for ExecuteOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecuteOutcome
impl RefUnwindSafe for ExecuteOutcome
impl Send for ExecuteOutcome
impl Sync for ExecuteOutcome
impl Unpin for ExecuteOutcome
impl UnsafeUnpin for ExecuteOutcome
impl UnwindSafe for ExecuteOutcome
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