pub enum GraphNodeExecution {
Completed {
state_change: NodeStateChange,
control: NodeControl,
bindings: NodeInvocationBindings,
usage: BudgetUsage,
},
ChildJoin(Box<ChildRunJoinRequest>),
}Expand description
A completed semantic result or a dedicated durable child suspension.
The durable driver rebinds these fields to the exact context activation by
constructing stateknot_core::PendingNodeResultIntent. Invocation
bindings are therefore revalidated before any success can commit.
Variants§
Completed
Complete this physical attempt; normal control and accounting apply.
Fields
state_change: NodeStateChangeTyped state contribution.
control: NodeControlClosed graph control outcome.
bindings: NodeInvocationBindingsExact committed external invocation references.
usage: BudgetUsageNormalized usage for this physical attempt.
ChildJoin(Box<ChildRunJoinRequest>)
Seal all admitted children and release the lease without completing the node. This carries no invented control, result, failure, or usage.
Implementations§
Source§impl GraphNodeExecution
impl GraphNodeExecution
Sourcepub const fn new(
state_change: NodeStateChange,
control: NodeControl,
bindings: NodeInvocationBindings,
usage: BudgetUsage,
) -> Self
pub const fn new( state_change: NodeStateChange, control: NodeControl, bindings: NodeInvocationBindings, usage: BudgetUsage, ) -> Self
Constructs one bounded semantic node result and its attempt usage.
Sourcepub fn child_join(request: ChildRunJoinRequest) -> Self
pub fn child_join(request: ChildRunJoinRequest) -> Self
Requests suspension before node completion. On recovery, inspect
context.child_join() and complete instead of registering again.
Trait Implementations§
Source§impl Clone for GraphNodeExecution
impl Clone for GraphNodeExecution
Auto Trait Implementations§
impl Forget for GraphNodeExecution
impl Freeze for GraphNodeExecution
impl Move for GraphNodeExecution
impl RefUnwindSafe for GraphNodeExecution
impl Send for GraphNodeExecution
impl Sync for GraphNodeExecution
impl Unpin for GraphNodeExecution
impl UnsafeUnpin for GraphNodeExecution
impl UnwindSafe for GraphNodeExecution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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