pub enum PythonExecutionError {
Show 15 variants
MissingContext(String),
VmMismatch {
expected: String,
found: String,
},
RuntimeUnavailable,
PrepareRuntime(Error),
PrepareWarmPath(Error),
WarmupFailed {
exit_code: i32,
stderr: String,
},
Spawn(Error),
StdinClosed,
Stdin(Error),
Kill(Error),
TimedOut(Duration),
PendingVfsRpcRequest(u64),
RpcResponse(String),
OutputBufferExceeded {
stream: &'static str,
limit: usize,
},
EventChannelClosed,
}Variants§
MissingContext(String)
VmMismatch
Guest Python is unavailable because this build was compiled without the bundled Pyodide runtime assets (the published crate excludes them).
PrepareRuntime(Error)
PrepareWarmPath(Error)
WarmupFailed
Spawn(Error)
StdinClosed
Stdin(Error)
Kill(Error)
TimedOut(Duration)
PendingVfsRpcRequest(u64)
RpcResponse(String)
OutputBufferExceeded
EventChannelClosed
Trait Implementations§
Source§impl Debug for PythonExecutionError
impl Debug for PythonExecutionError
Source§impl Display for PythonExecutionError
impl Display for PythonExecutionError
Source§impl Error for PythonExecutionError
impl Error for PythonExecutionError
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 PythonExecutionError
impl !UnwindSafe for PythonExecutionError
impl Freeze for PythonExecutionError
impl Send for PythonExecutionError
impl Sync for PythonExecutionError
impl Unpin for PythonExecutionError
impl UnsafeUnpin for PythonExecutionError
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