pub struct SandboxOutcome {
pub success: bool,
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub stderr: String,
pub limit_exceeded: Option<String>,
}Expand description
Structured outcome of run_sandboxed.
Fields§
§success: boolThe child exited with status 0 and no limit was exceeded.
exit_code: Option<i32>Raw exit code, if the child exited normally.
signal: Option<i32>Terminating signal number, if the child was signalled.
stderr: StringCaptured stderr (trimmed and truncated to the first few lines).
limit_exceeded: Option<String>Which limit (if any) was exceeded.
Implementations§
Trait Implementations§
Source§impl Clone for SandboxOutcome
impl Clone for SandboxOutcome
Source§fn clone(&self) -> SandboxOutcome
fn clone(&self) -> SandboxOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SandboxOutcome
impl RefUnwindSafe for SandboxOutcome
impl Send for SandboxOutcome
impl Sync for SandboxOutcome
impl Unpin for SandboxOutcome
impl UnsafeUnpin for SandboxOutcome
impl UnwindSafe for SandboxOutcome
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