Struct TaskRecord
pub struct TaskRecord {Show 15 fields
pub id: String,
pub kind: TaskKind,
pub agent: String,
pub status: TaskStatus,
pub owner_pid: u32,
pub owner_boot_id: String,
pub heartbeat_at: Option<String>,
pub depth: u32,
pub parent_id: Option<String>,
pub originator_route: Option<String>,
pub delivered: bool,
pub idem_key: Option<String>,
pub principal_id: Option<String>,
pub started_at: String,
pub finished_at: Option<String>,
}Fields§
§id: StringStable task id. Producers validate it at registration boundaries.
kind: TaskKindDurable task domain type.
agent: StringAgent alias that owns and executes this task.
status: TaskStatusCanonical lifecycle state for the task.
owner_pid: u32OS pid of the daemon that created the task; paired with owner_boot_id so a
recycled pid on a later boot is not mistaken for the live owner.
owner_boot_id: StringDaemon run-id; survives PID reuse and distinguishes a prior-boot orphan from a live same-boot task.
heartbeat_at: Option<String>Optional owner heartbeat timestamp in RFC3339 form. Only tasks that actively heartbeat may be timed out by heartbeat age; an absent heartbeat is not a derived runtime duration.
depth: u32Monotonic persisted recursion depth for delegation/subagent governors.
parent_id: Option<String>Parent task id for synchronous child work, when one exists.
originator_route: Option<String>Trusted route/reply target that originated the task. Goal admission and visibility checks use this canonical route instead of trusting model-supplied task selectors.
delivered: boolWhether user-visible completion delivery has been confirmed.
idem_key: Option<String>Optional idempotency key for completion/delivery operations.
principal_id: Option<String>§started_at: StringTask registration/start timestamp in RFC3339 form.
finished_at: Option<String>Terminal transition timestamp in RFC3339 form.
Trait Implementations§
Source§impl Clone for TaskRecord
impl Clone for TaskRecord
Source§fn clone(&self) -> TaskRecord
fn clone(&self) -> TaskRecord
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskRecord
impl Debug for TaskRecord
Source§impl<'de> Deserialize<'de> for TaskRecord
impl<'de> Deserialize<'de> for TaskRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TaskRecord
impl RefUnwindSafe for TaskRecord
impl Send for TaskRecord
impl Sync for TaskRecord
impl Unpin for TaskRecord
impl UnsafeUnpin for TaskRecord
impl UnwindSafe for TaskRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more