pub enum ExecEvent {
Fact {
at: DateTime<Utc>,
fact: StepFact,
},
Signal(UiSignal),
AwaitPrompt {
step: Option<StepId>,
prompt_id: PromptId,
prompt: Prompt,
previous_attempt_rejected_because: Option<String>,
},
Finalized {
fingerprint: String,
},
}Expand description
Event emitted by the runtime to the frontend.
Variants§
Fact
A transcript-worthy fact. Already persisted by the transcript sink by the time it reaches the frontend.
Fields
Signal(UiSignal)
A UI-only signal.
AwaitPrompt
The runtime is waiting for a user response. The frontend must reply
with UiCommand::PromptResponse carrying the matching prompt_id.
Fields
Finalized
Sent once after the terminal fact has been recorded and the chain head is final. Out-of-band so the fact itself doesn’t carry the hash of the chain it belongs to. Frontends use this to display the fingerprint on the completion screen.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecEvent
impl RefUnwindSafe for ExecEvent
impl Send for ExecEvent
impl Sync for ExecEvent
impl Unpin for ExecEvent
impl UnsafeUnpin for ExecEvent
impl UnwindSafe for ExecEvent
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