pub struct ExecutionOutcome { /* private fields */ }Expand description
Captured execution result paired with an enforcement receipt.
Post-spawn validation checked-adds the byte lengths of stdout and stderr; their combined size
may not exceed the exact preflight max_output_bytes. Resource-limit termination variants are
accepted only when the corresponding limit was present in that exact preflight.
ⓘ
use tapid_runner::{EnforcementReceipt, ExecutionOutcome, Termination};
fn forge(enforcement: EnforcementReceipt) {
let _ = ExecutionOutcome {
termination: Termination::Exited(0), stdout: vec![], stderr: vec![], enforcement
};
}Implementations§
Source§impl ExecutionOutcome
impl ExecutionOutcome
pub fn termination(&self) -> &Termination
pub fn stdout(&self) -> &[u8] ⓘ
pub fn stderr(&self) -> &[u8] ⓘ
Sourcepub fn process_memory_stats_hint(&self) -> bool
pub fn process_memory_stats_hint(&self) -> bool
Whether stderr matched the known libuv process-memory-stat permission failure.
pub fn enforcement(&self) -> &EnforcementReceipt
pub fn completion(&self) -> &CompletionEvidence
Trait Implementations§
Source§impl Clone for ExecutionOutcome
impl Clone for ExecutionOutcome
Source§impl Debug for ExecutionOutcome
impl Debug for ExecutionOutcome
impl Eq for ExecutionOutcome
Source§impl PartialEq for ExecutionOutcome
impl PartialEq for ExecutionOutcome
impl StructuralPartialEq for ExecutionOutcome
Auto Trait Implementations§
impl Freeze for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcome
impl Sync for ExecutionOutcome
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcome
impl UnwindSafe for ExecutionOutcome
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