pub struct ReplayEngine<S: StorageBackend> { /* private fields */ }Implementations§
Source§impl<S: StorageBackend> ReplayEngine<S>
impl<S: StorageBackend> ReplayEngine<S>
pub fn new(storage: S) -> Self
pub fn with_mode(storage: S, mode: ReplayMode) -> Self
Sourcepub fn default_mode(&self) -> &ReplayMode
pub fn default_mode(&self) -> &ReplayMode
Get the default replay mode
Sourcepub async fn replay(
&self,
snapshot_id: &str,
mode: Option<ReplayMode>,
_context_overrides: Option<HashMap<String, Value>>,
) -> Result<ReplayResult, ReplayError>
pub async fn replay( &self, snapshot_id: &str, mode: Option<ReplayMode>, _context_overrides: Option<HashMap<String, Value>>, ) -> Result<ReplayResult, ReplayError>
Replay a snapshot by ID
Sourcepub async fn replay_with_policy(
&self,
snapshot_id: &str,
policy: &ReplayPolicy,
mode: Option<ReplayMode>,
) -> Result<ReplayResult, ReplayError>
pub async fn replay_with_policy( &self, snapshot_id: &str, policy: &ReplayPolicy, mode: Option<ReplayMode>, ) -> Result<ReplayResult, ReplayError>
Replay with policy validation
Sourcepub async fn diff(
&self,
original_id: &str,
new_id: &str,
) -> Result<SnapshotDiff, ReplayError>
pub async fn diff( &self, original_id: &str, new_id: &str, ) -> Result<SnapshotDiff, ReplayError>
Compare two snapshots
Sourcepub async fn validate(
&self,
snapshot_id: &str,
policy: &ReplayPolicy,
) -> Result<Vec<PolicyViolation>, ReplayError>
pub async fn validate( &self, snapshot_id: &str, policy: &ReplayPolicy, ) -> Result<Vec<PolicyViolation>, ReplayError>
Validate a snapshot against a policy (without re-executing)
Sourcepub async fn replay_batch(
&self,
snapshot_ids: &[String],
mode: Option<ReplayMode>,
concurrency: usize,
) -> Vec<Result<ReplayResult, ReplayError>>
pub async fn replay_batch( &self, snapshot_ids: &[String], mode: Option<ReplayMode>, concurrency: usize, ) -> Vec<Result<ReplayResult, ReplayError>>
Batch replay multiple snapshots
Sourcepub async fn get_replay_stats(
&self,
snapshot_ids: &[String],
) -> Result<ReplayStats, ReplayError>
pub async fn get_replay_stats( &self, snapshot_ids: &[String], ) -> Result<ReplayStats, ReplayError>
Get replay statistics for a set of snapshots
Trait Implementations§
Source§impl<S: Clone + StorageBackend> Clone for ReplayEngine<S>
impl<S: Clone + StorageBackend> Clone for ReplayEngine<S>
Source§fn clone(&self) -> ReplayEngine<S>
fn clone(&self) -> ReplayEngine<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for ReplayEngine<S>where
S: Freeze,
impl<S> RefUnwindSafe for ReplayEngine<S>where
S: RefUnwindSafe,
impl<S> Send for ReplayEngine<S>
impl<S> Sync for ReplayEngine<S>
impl<S> Unpin for ReplayEngine<S>where
S: Unpin,
impl<S> UnwindSafe for ReplayEngine<S>where
S: UnwindSafe,
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