pub struct RunInterrupt { /* private fields */ }Expand description
Immutable lifecycle marker for one unresolved interrupt.
Request and resolution payloads, authorization requirements, action digests, and resolver provenance belong to the durable interrupt record. The runtime commits that record atomically with the lifecycle transition; this compact marker prevents large or sensitive payloads from being copied into every run snapshot.
Implementations§
Source§impl RunInterrupt
impl RunInterrupt
Sourcepub fn new(
interrupt_id: InterruptId,
kind: RunInterruptKind,
requested_at: Timestamp,
expires_at: Option<Timestamp>,
) -> Result<Self, RunInterruptError>
pub fn new( interrupt_id: InterruptId, kind: RunInterruptKind, requested_at: Timestamp, expires_at: Option<Timestamp>, ) -> Result<Self, RunInterruptError>
Constructs an interrupt marker with an optional exclusive expiry.
A resolution observed exactly at expires_at is expired.
§Errors
Returns RunInterruptError::ExpiryNotAfterRequest unless an expiry is
strictly later than the request observation.
Sourcepub const fn interrupt_id(&self) -> InterruptId
pub const fn interrupt_id(&self) -> InterruptId
Returns the tenant-scoped interrupt identifier.
Sourcepub const fn kind(&self) -> RunInterruptKind
pub const fn kind(&self) -> RunInterruptKind
Returns the semantic interrupt kind.
Sourcepub const fn requested_at(&self) -> Timestamp
pub const fn requested_at(&self) -> Timestamp
Returns the durable clock observation at registration.
Sourcepub const fn expires_at(&self) -> Option<Timestamp>
pub const fn expires_at(&self) -> Option<Timestamp>
Returns the exclusive resolution expiry, if configured.
Trait Implementations§
Source§impl Clone for RunInterrupt
impl Clone for RunInterrupt
Source§impl Debug for RunInterrupt
impl Debug for RunInterrupt
Source§impl<'de> Deserialize<'de> for RunInterrupt
impl<'de> Deserialize<'de> for RunInterrupt
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 RunInterrupt
Source§impl JsonSchema for RunInterrupt
impl JsonSchema for RunInterrupt
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