pub struct EffectRecord {
pub seq: u32,
pub effect_type: String,
pub args: Vec<JsonValue>,
pub outcome: RecordedOutcome,
pub caller_fn: String,
pub source_line: usize,
pub group_id: Option<u32>,
pub branch_path: Option<String>,
pub effect_occurrence: Option<u32>,
}Fields§
§seq: u32§effect_type: String§args: Vec<JsonValue>§outcome: RecordedOutcome§caller_fn: StringName of the function that made this effect call (empty = unknown).
source_line: usizeSource line of the call expression that triggered this effect (0 = unknown).
group_id: Option<u32>Independent product group: effects sharing a group_id are order-independent.
During replay, effects within a group are matched by
(branch_path, effect_occurrence, type, args).
branch_path: Option<String>Branch path within nested independent products (e.g. “0.1” = branch 0 of outer, branch 1 of inner). Disambiguates effects from different branches.
effect_occurrence: Option<u32>Per-branch ordinal of effect emission (0-based). Disambiguates multiple emissions of the same effect type+args within a single branch.
Trait Implementations§
Source§impl Clone for EffectRecord
impl Clone for EffectRecord
Source§fn clone(&self) -> EffectRecord
fn clone(&self) -> EffectRecord
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 EffectRecord
impl Debug for EffectRecord
Source§impl PartialEq for EffectRecord
impl PartialEq for EffectRecord
Source§fn eq(&self, other: &EffectRecord) -> bool
fn eq(&self, other: &EffectRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EffectRecord
Auto Trait Implementations§
impl Freeze for EffectRecord
impl RefUnwindSafe for EffectRecord
impl Send for EffectRecord
impl Sync for EffectRecord
impl Unpin for EffectRecord
impl UnsafeUnpin for EffectRecord
impl UnwindSafe for EffectRecord
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