pub enum KernelEvent {
RunStarted {
op_id: OpId,
manifest_id: ArtifactId,
initial_snapshot_id: ArtifactId,
},
StateEntered {
state_id: StateId,
attempt: u32,
base_snapshot_id: ArtifactId,
},
StateCompleted {
state_id: StateId,
context_snapshot_id: ArtifactId,
},
StateFailed {
state_id: StateId,
error: StateError,
failure_snapshot_id: Option<ArtifactId>,
},
RunCompleted {
status: RunStatus,
final_snapshot_id: Option<ArtifactId>,
},
}Expand description
Kernel event variants required for recovery/resume correctness.
Variants§
RunStarted
Marks the start of a run and records its manifest and initial snapshot.
Fields
§
manifest_id: ArtifactIdManifest artifact identifier.
§
initial_snapshot_id: ArtifactIdSnapshot of initial context at run start.
StateEntered
Marks entry into a state attempt.
Fields
§
base_snapshot_id: ArtifactIdSnapshot the attempt starts from (resume/retry boundary).
StateCompleted
Marks successful completion of a state.
Fields
§
context_snapshot_id: ArtifactIdContext snapshot captured after completion.
StateFailed
Marks failure of a state attempt.
Fields
§
error: StateErrorStructured failure payload.
§
failure_snapshot_id: Option<ArtifactId>Diagnostic-only snapshot (must not be used as a resume boundary).
RunCompleted
Marks the terminal status of the run.
Fields
§
final_snapshot_id: Option<ArtifactId>Final context snapshot, if one was produced.
Trait Implementations§
Source§impl Clone for KernelEvent
impl Clone for KernelEvent
Source§fn clone(&self) -> KernelEvent
fn clone(&self) -> KernelEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelEvent
impl Debug for KernelEvent
Source§impl<'de> Deserialize<'de> for KernelEvent
impl<'de> Deserialize<'de> for KernelEvent
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KernelEvent
impl PartialEq for KernelEvent
Source§impl Serialize for KernelEvent
impl Serialize for KernelEvent
impl Eq for KernelEvent
impl StructuralPartialEq for KernelEvent
Auto Trait Implementations§
impl Freeze for KernelEvent
impl RefUnwindSafe for KernelEvent
impl Send for KernelEvent
impl Sync for KernelEvent
impl Unpin for KernelEvent
impl UnsafeUnpin for KernelEvent
impl UnwindSafe for KernelEvent
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