pub struct TaskHandle {
pub id: TaskId,
pub stop: Call,
pub status: Key,
pub feedback: Vec<Key>,
pub result: Vec<Key>,
pub update: Vec<Key>,
}Expand description
The serializable contract for one run’s lifecycle: everything needed to follow and stop it, as data.
Returned from spawn. The keys are
allocated by the interpreter under the run’s id, so concurrent
runs demux. A run’s actuation writes are deliberately not here — those go
to the shared standard keys, where overlapping runs are last-write-wins.
Fields§
§id: TaskIdThe run’s identity.
stop: CallHow to stop the run: a Call the observer issues, which reaches
halt. Carrying it as a Call keeps
“how to stop it” serializable and interpreter-agnostic.
status: KeyThe run’s lifecycle status key — a single key an observer watches to learn when the run reaches a terminal state and how it ended.
feedback: Vec<Key>Keys carrying the run’s progress feedback, updated as it runs.
result: Vec<Key>Keys carrying the run’s result, written when it terminates.
update: Vec<Key>Keys an observer may write to steer a live run (e.g. a moving target).
Trait Implementations§
Source§impl AroraType for TaskHandle
impl AroraType for TaskHandle
Source§fn arora_type_id() -> Uuid
fn arora_type_id() -> Uuid
arora_type carries, and the
id a field of this type is referenced by.Source§fn arora_type() -> Type
fn arora_type() -> Type
register_types.Source§fn register_types(registry: &mut TypeRegistry)
fn register_types(registry: &mut TypeRegistry)
registry. Idempotent, and safe for types reachable from themselves.Source§impl Clone for TaskHandle
impl Clone for TaskHandle
Source§fn clone(&self) -> TaskHandle
fn clone(&self) -> TaskHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more