pub enum WasmExecutionError {
Show 17 variants
MissingContext(String),
VmMismatch {
expected: String,
found: String,
},
MissingModulePath,
InvalidLimit(String),
InvalidModule(String),
NativeBinaryNotSupported {
path: PathBuf,
header: Vec<u8>,
format: NativeBinaryFormat,
},
NonWasmBinary {
path: PathBuf,
header: Vec<u8>,
shell_shim: bool,
},
PrepareWarmPath(Error),
WarmupSpawn(Error),
WarmupTimeout(Duration),
WarmupFailed {
exit_code: i32,
stderr: String,
},
Spawn(Error),
RpcResponse(String),
StdinClosed,
Stdin(Error),
OutputBufferExceeded {
stream: &'static str,
limit: usize,
},
EventChannelClosed,
}Variants§
MissingContext(String)
VmMismatch
MissingModulePath
InvalidLimit(String)
InvalidModule(String)
NativeBinaryNotSupported
NonWasmBinary
PrepareWarmPath(Error)
WarmupSpawn(Error)
WarmupTimeout(Duration)
WarmupFailed
Spawn(Error)
RpcResponse(String)
StdinClosed
Stdin(Error)
OutputBufferExceeded
EventChannelClosed
Trait Implementations§
Source§impl Debug for WasmExecutionError
impl Debug for WasmExecutionError
Source§impl Display for WasmExecutionError
impl Display for WasmExecutionError
Source§impl Error for WasmExecutionError
impl Error for WasmExecutionError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for WasmExecutionError
impl !UnwindSafe for WasmExecutionError
impl Freeze for WasmExecutionError
impl Send for WasmExecutionError
impl Sync for WasmExecutionError
impl Unpin for WasmExecutionError
impl UnsafeUnpin for WasmExecutionError
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