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 Forget for ExecutionOutcome
impl Freeze for ExecutionOutcomewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Vec<u8>>: Freeze,
PhantomData<DimensionEvidence>: Freeze,
PhantomData<ResolvedFilesystemGrant>: Freeze,
impl Move for ExecutionOutcome
impl RefUnwindSafe for ExecutionOutcome
impl Send for ExecutionOutcomewhere
RawVecInner: Send,
impl Sync for ExecutionOutcomewhere
RawVecInner: Sync,
impl Unpin for ExecutionOutcome
impl UnsafeUnpin for ExecutionOutcomewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Vec<u8>>: UnsafeUnpin,
PhantomData<DimensionEvidence>: UnsafeUnpin,
PhantomData<ResolvedFilesystemGrant>: UnsafeUnpin,
impl UnwindSafe for ExecutionOutcomewhere
RawVecInner: UnwindSafe,
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