pub enum ReplayOutcome {
Replayed {
warnings: Vec<ReplayWarning>,
},
Diverged {
at_event: usize,
expected: Box<JournalEvent>,
found: DivergenceFound,
},
Failed {
at_event: usize,
reason: FailReason,
},
}Expand description
Outcome of replaying a journal prefix against a program.
Typed, never silent, never panicking. Serialize/Deserialize (tagged
type, snake_case) so wasm/other bindings can mirror this shape verbatim
instead of hand-rolling a parallel JS type — matches the EventKind/
JournalEvent convention above.
Variants§
Replayed
The prefix replayed successfully. warnings collects soft issues (e.g.
choice label drift at a matching index).
Fields
§
warnings: Vec<ReplayWarning>Diverged
Replay diverged at at_event: the recorded event could not be applied
against the current program. The journal is truncated at that point and
the session is parked at the reached position.
Failed
Replay failed at at_event for a non-divergence reason.
Trait Implementations§
Source§impl Clone for ReplayOutcome
impl Clone for ReplayOutcome
Source§fn clone(&self) -> ReplayOutcome
fn clone(&self) -> ReplayOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplayOutcome
impl Debug for ReplayOutcome
Source§impl<'de> Deserialize<'de> for ReplayOutcome
impl<'de> Deserialize<'de> for ReplayOutcome
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 ReplayOutcome
impl PartialEq for ReplayOutcome
Source§impl Serialize for ReplayOutcome
impl Serialize for ReplayOutcome
impl StructuralPartialEq for ReplayOutcome
Auto Trait Implementations§
impl Freeze for ReplayOutcome
impl RefUnwindSafe for ReplayOutcome
impl Send for ReplayOutcome
impl Sync for ReplayOutcome
impl Unpin for ReplayOutcome
impl UnsafeUnpin for ReplayOutcome
impl UnwindSafe for ReplayOutcome
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