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 ensure_replay_consumed(&self) -> Result<(), ReplayFailure>
pub fn record_effect( &mut self, effect_type: &str, args: Vec<JsonValue>, outcome: RecordedOutcome, )
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