pub enum EventKind {
Start {
path: Option<String>,
args: Vec<Value>,
},
Choice {
index: u32,
label: Option<String>,
},
External {
name: String,
args: Vec<Value>,
result: Value,
},
SetVar {
name: String,
value: Value,
},
GoToPath {
path: String,
args: Vec<Value>,
},
LoadState {
state: SaveState,
},
Call {
name: String,
args: Vec<Value>,
},
}Expand description
The kind + payload of a JournalEvent.
Variants§
Start
Session start / play-from-here. path is None for the default root
entry, Some for a ChoosePathString start.
Choice
A choice selection. label is the choice text as seen (advisory — used
only for label-drift warnings, never as the selection key).
External
An external-function result, captured where the session’s own frame received it (the journaling-window gate).
SetVar
A host set_var (turn-boundary only).
GoToPath
A host go_to_path / ChoosePathString (turn-boundary only).
LoadState
A host load_state (turn-boundary only).
Call
A journaled call_function. The function’s own externals are resolved
through the isolated (non-journaling) handler path — only the top-level
call is journaled here.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
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
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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