pub enum NodeWait {
Interrupt {
interrupt_id: InterruptId,
interrupt_kind: RunInterruptKind,
request_payload: JournalPayload,
action_digest: Digest,
required_principal: Option<PrincipalIdentity>,
required_scopes: ScopeSet,
expires_at: Option<Timestamp>,
},
Timer {
timer_id: TimerId,
timer_kind: RunTimerKind,
due_at: Timestamp,
},
}Expand description
Complete, uncommitted lifecycle condition emitted by a graph node.
Unlike crate::RunWait, this value deliberately has no registration
timestamp or journal identity. Those are authoritative database facts that
exist only when the lifecycle coordinator atomically commits the graph
barrier and wait registrations. Every policy-bearing interrupt field is
retained here so recovery can reproduce the exact registration without
consulting mutable application configuration.
Variants§
Interrupt
Require one authenticated, authorized external resolution.
Fields
interrupt_id: InterruptIdStable interrupt identity selected before node-result commit.
interrupt_kind: RunInterruptKindProtocol-neutral reason the run needs external input.
request_payload: JournalPayloadComplete schema-pinned public request payload.
required_principal: Option<PrincipalIdentity>Exact required resolver, when policy selected one.
Timer
Require one database-clock timer observation.
Implementations§
Source§impl NodeWait
impl NodeWait
Sourcepub const fn interrupt(
interrupt_id: InterruptId,
interrupt_kind: RunInterruptKind,
request_payload: JournalPayload,
action_digest: Digest,
required_principal: Option<PrincipalIdentity>,
required_scopes: ScopeSet,
expires_at: Option<Timestamp>,
) -> Self
pub const fn interrupt( interrupt_id: InterruptId, interrupt_kind: RunInterruptKind, request_payload: JournalPayload, action_digest: Digest, required_principal: Option<PrincipalIdentity>, required_scopes: ScopeSet, expires_at: Option<Timestamp>, ) -> Self
Constructs a complete interrupt registration specification.
Sourcepub const fn timer(
timer_id: TimerId,
timer_kind: RunTimerKind,
due_at: Timestamp,
) -> Self
pub const fn timer( timer_id: TimerId, timer_kind: RunTimerKind, due_at: Timestamp, ) -> Self
Constructs a complete timer registration specification.
Sourcepub fn registration_intent(
&self,
tenant_id: TenantId,
run_id: RunId,
event_id: EventId,
) -> Result<WaitRegistrationIntent, DurableWaitError>
pub fn registration_intent( &self, tenant_id: TenantId, run_id: RunId, event_id: EventId, ) -> Result<WaitRegistrationIntent, DurableWaitError>
Converts this durable node result into an exact event-bound provider registration intent.
The provider still supplies and verifies the authoritative database registration time while committing the wait barrier.
§Errors
Returns crate::DurableWaitError only if canonical intent integrity
material cannot be encoded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeWait
impl<'de> Deserialize<'de> for NodeWait
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>,
impl Eq for NodeWait
Source§impl JsonSchema for NodeWait
impl JsonSchema for NodeWait
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more