pub struct BackgroundOutcome {
pub task_id: String,
pub label: String,
pub result: BackgroundResult,
}Expand description
The outcome produced after a background task completes.
Fields§
§task_id: StringThe task ID (same as returned by spawn), used for backflow message annotation
and external diagnostics.
label: StringTask label (primarily from the spawn_agent profile name), included in the return
message so the model or user can identify the source.
result: BackgroundResultThe result of the background task.
Trait Implementations§
Source§impl Clone for BackgroundOutcome
impl Clone for BackgroundOutcome
Source§fn clone(&self) -> BackgroundOutcome
fn clone(&self) -> BackgroundOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackgroundOutcome
impl Debug for BackgroundOutcome
impl Eq for BackgroundOutcome
Source§impl PartialEq for BackgroundOutcome
impl PartialEq for BackgroundOutcome
Source§fn eq(&self, other: &BackgroundOutcome) -> bool
fn eq(&self, other: &BackgroundOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackgroundOutcome
Auto Trait Implementations§
impl Freeze for BackgroundOutcome
impl RefUnwindSafe for BackgroundOutcome
impl Send for BackgroundOutcome
impl Sync for BackgroundOutcome
impl Unpin for BackgroundOutcome
impl UnsafeUnpin for BackgroundOutcome
impl UnwindSafe for BackgroundOutcome
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