pub enum ExecutionKind {
AgentTurn,
DagRun,
ScheduledJob,
SubagentSession,
Custom(&'static str),
}Expand description
Closed classification of what a durable execution represents.
A closed enum (rather than a free-form string) prevents typos and lets the retention policy
reason about execution categories. The Custom variant carries a compile-time string literal
for execution kinds defined outside the standard set.
§Examples
use zeph_durable::ExecutionKind;
assert_eq!(ExecutionKind::AgentTurn.as_str(), "agent_turn");
assert_eq!(ExecutionKind::Custom("nightly_sweep").as_str(), "nightly_sweep");Variants§
AgentTurn
A single agent reasoning turn (the P1 adapter target).
DagRun
An orchestration DAG run (the P2 adapter target).
ScheduledJob
A scheduler job fire (the P3 adapter target).
SubagentSession
A subagent session (the P4 adapter target).
Custom(&'static str)
A caller-defined execution kind identified by a compile-time literal.
Implementations§
Source§impl ExecutionKind
impl ExecutionKind
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Return the canonical lower-snake-case string used in the kind journal column.
For ExecutionKind::Custom the inner literal is returned verbatim.
Trait Implementations§
Source§impl Clone for ExecutionKind
impl Clone for ExecutionKind
Source§fn clone(&self) -> ExecutionKind
fn clone(&self) -> ExecutionKind
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 moreimpl Copy for ExecutionKind
Source§impl Debug for ExecutionKind
impl Debug for ExecutionKind
impl Eq for ExecutionKind
Source§impl Hash for ExecutionKind
impl Hash for ExecutionKind
Source§impl PartialEq for ExecutionKind
impl PartialEq for ExecutionKind
impl StructuralPartialEq for ExecutionKind
Auto Trait Implementations§
impl Freeze for ExecutionKind
impl RefUnwindSafe for ExecutionKind
impl Send for ExecutionKind
impl Sync for ExecutionKind
impl Unpin for ExecutionKind
impl UnsafeUnpin for ExecutionKind
impl UnwindSafe for ExecutionKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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