pub struct SpawnedTask {
pub task_id: String,
pub completion: Receiver<TaskCompletion>,
}Expand description
A successfully admitted spawn: the driver-assigned task id (the engine’s
agent_id) plus the oneshot the driver resolves on completion.
Dropping the receiver must not wedge the driver; drivers should treat a closed completion channel as “nobody is listening” and move on.
Fields§
§task_id: StringDriver-assigned id, unique within the run (engine agent_id).
completion: Receiver<TaskCompletion>Resolved exactly once with the terminal TaskCompletion.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SpawnedTask
impl !UnwindSafe for SpawnedTask
impl Freeze for SpawnedTask
impl Send for SpawnedTask
impl Sync for SpawnedTask
impl Unpin for SpawnedTask
impl UnsafeUnpin for SpawnedTask
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