#[non_exhaustive]pub enum SandboxExecutionError {
Prepare {
source: Box<dyn Error + Send + Sync>,
},
Spawn {
source: Box<dyn Error + Send + Sync>,
},
TryWait {
source: Box<dyn Error + Send + Sync>,
},
Wait {
source: Box<dyn Error + Send + Sync>,
},
Kill {
source: Box<dyn Error + Send + Sync>,
},
}Expand description
A failed dynamic execution operation, retaining its concrete native cause.
Error::source exposes the original backend error, including its nested
source chain and downcast_ref support. Errors do not consume or detach a
live child: its native lifecycle still controls termination and recovery.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Prepare
The selected backend rejected preparation before starting a process.
Spawn
Native process or boundary creation failed.
TryWait
Checking command completion failed.
Wait
Waiting for command completion failed, including a native timeout.
Kill
Terminating or cleaning up the complete boundary failed.
Trait Implementations§
Source§impl Debug for SandboxExecutionError
impl Debug for SandboxExecutionError
Source§impl Display for SandboxExecutionError
impl Display for SandboxExecutionError
Source§impl Error for SandboxExecutionError
impl Error for SandboxExecutionError
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 SandboxExecutionError
impl !UnwindSafe for SandboxExecutionError
impl Freeze for SandboxExecutionError
impl Send for SandboxExecutionError
impl Sync for SandboxExecutionError
impl Unpin for SandboxExecutionError
impl UnsafeUnpin for SandboxExecutionError
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