pub enum Interrupt {
None,
Cancel,
Steer {
speaker: Speaker,
text: String,
},
Policy {
policy: RunPolicy,
},
}Expand description
Boundary snapshot, supplied by the executor at every phase change.
Cancel ends the turn at the boundary; Steer records and advances
(the executor folds the text into its Conversation); Policy
advances too, and the executor holds it in its PolicyCell until the
next SafePoint::BeforeWave (crates/runtime/spec/PolicyTake.lean
§8-62). Policy writes nothing: its run_policy_changed line is
already on the ledger, which is how it reached this run.
Variants§
None
Cancel
Steer
Who spoke is a type, so only the entrance that builds
Speaker::Person can make a steer render as the User’s.
Policy
Trait Implementations§
impl Eq for Interrupt
impl StructuralPartialEq for Interrupt
Auto Trait Implementations§
impl Freeze for Interrupt
impl RefUnwindSafe for Interrupt
impl Send for Interrupt
impl Sync for Interrupt
impl Unpin for Interrupt
impl UnsafeUnpin for Interrupt
impl UnwindSafe for Interrupt
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