pub struct BackgroundCompletion {
pub run_id: RunId,
pub exit_code: i32,
pub output: String,
pub success: bool,
pub elapsed_ms: u64,
pub command: String,
}Expand description
Final result delivered when a background run finishes.
Sent via ToolEvent::Completed { run_id: Some(..), .. } and buffered in
LifecycleState::pending_background_completions for injection into the next turn.
Fields§
§run_id: RunIdThe run that produced this result.
exit_code: i32Shell exit code (0 = success).
output: StringFiltered and truncated output text.
success: booltrue when exit_code == 0.
elapsed_ms: u64Wall-clock elapsed milliseconds from spawn to completion.
command: StringOriginal command string.
Trait Implementations§
Source§impl Clone for BackgroundCompletion
impl Clone for BackgroundCompletion
Source§fn clone(&self) -> BackgroundCompletion
fn clone(&self) -> BackgroundCompletion
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 BackgroundCompletion
impl RefUnwindSafe for BackgroundCompletion
impl Send for BackgroundCompletion
impl Sync for BackgroundCompletion
impl Unpin for BackgroundCompletion
impl UnsafeUnpin for BackgroundCompletion
impl UnwindSafe for BackgroundCompletion
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