pub struct EffectReplayState { /* private fields */ }Implementations§
Source§impl EffectReplayState
impl EffectReplayState
pub fn mode(&self) -> EffectReplayMode
pub fn set_normal(&mut self)
pub fn start_recording(&mut self)
pub fn start_replay(&mut self, effects: Vec<EffectRecord>, validate_args: bool)
pub fn take_recorded_effects(&mut self) -> Vec<EffectRecord>
pub fn recorded_effects(&self) -> &[EffectRecord]
pub fn replay_progress(&self) -> (usize, usize)
pub fn args_diff_count(&self) -> usize
pub fn ensure_replay_consumed(&self) -> Result<(), ReplayFailure>
Sourcepub fn enter_group(&mut self) -> u32
pub fn enter_group(&mut self) -> u32
Enter an independent product group for recording. Returns the group id.
Sourcepub fn exit_group(&mut self)
pub fn exit_group(&mut self)
Exit the current independent product group.
Sourcepub fn set_branch(&mut self, index: u32)
pub fn set_branch(&mut self, index: u32)
Set the current branch index within the current (innermost) product.
pub fn record_effect( &mut self, effect_type: &str, args: Vec<JsonValue>, outcome: RecordedOutcome, caller_fn: &str, source_line: usize, )
pub fn replay_effect( &mut self, effect_type: &str, got_args: Option<Vec<JsonValue>>, ) -> Result<RecordedOutcome, ReplayFailure>
Trait Implementations§
Source§impl Clone for EffectReplayState
impl Clone for EffectReplayState
Source§fn clone(&self) -> EffectReplayState
fn clone(&self) -> EffectReplayState
Returns a duplicate of the value. Read more
1.0.0 · 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 EffectReplayState
impl Debug for EffectReplayState
Source§impl Default for EffectReplayState
impl Default for EffectReplayState
Source§fn default() -> EffectReplayState
fn default() -> EffectReplayState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EffectReplayState
impl RefUnwindSafe for EffectReplayState
impl Send for EffectReplayState
impl Sync for EffectReplayState
impl Unpin for EffectReplayState
impl UnsafeUnpin for EffectReplayState
impl UnwindSafe for EffectReplayState
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