pub struct SyncReplayEngine<S: SyncStorageBackend> { /* private fields */ }Expand description
Synchronous replay engine
Implementations§
Source§impl<S: SyncStorageBackend> SyncReplayEngine<S>
impl<S: SyncStorageBackend> SyncReplayEngine<S>
Sourcepub fn with_mode(storage: S, mode: ReplayMode) -> Self
pub fn with_mode(storage: S, mode: ReplayMode) -> Self
Create a replay engine with a specific default mode
Sourcepub fn default_mode(&self) -> ReplayMode
pub fn default_mode(&self) -> ReplayMode
Get the default replay mode
Sourcepub fn replay(
&self,
snapshot_id: &str,
mode: Option<ReplayMode>,
_context_overrides: Option<Value>,
) -> Result<ReplayResult, ReplayError>
pub fn replay( &self, snapshot_id: &str, mode: Option<ReplayMode>, _context_overrides: Option<Value>, ) -> Result<ReplayResult, ReplayError>
Replay a snapshot by ID
Sourcepub fn replay_with_policy(
&self,
snapshot_id: &str,
policy: &ReplayPolicy,
mode: Option<ReplayMode>,
) -> Result<ReplayResult, ReplayError>
pub fn replay_with_policy( &self, snapshot_id: &str, policy: &ReplayPolicy, mode: Option<ReplayMode>, ) -> Result<ReplayResult, ReplayError>
Replay with policy validation
Sourcepub fn validate(
&self,
snapshot_id: &str,
policy: &ReplayPolicy,
) -> Result<Vec<PolicyViolation>, ReplayError>
pub fn validate( &self, snapshot_id: &str, policy: &ReplayPolicy, ) -> Result<Vec<PolicyViolation>, ReplayError>
Validate a snapshot against a policy
Sourcepub fn get_replay_stats(
&self,
snapshot_ids: &[String],
) -> Result<ReplayStats, ReplayError>
pub fn get_replay_stats( &self, snapshot_ids: &[String], ) -> Result<ReplayStats, ReplayError>
Get replay statistics for a list of snapshots
Trait Implementations§
Source§impl<S> Clone for SyncReplayEngine<S>where
S: Clone + SyncStorageBackend,
impl<S> Clone for SyncReplayEngine<S>where
S: Clone + SyncStorageBackend,
Auto Trait Implementations§
impl<S> Freeze for SyncReplayEngine<S>where
S: Freeze,
impl<S> RefUnwindSafe for SyncReplayEngine<S>where
S: RefUnwindSafe,
impl<S> Send for SyncReplayEngine<S>
impl<S> Sync for SyncReplayEngine<S>
impl<S> Unpin for SyncReplayEngine<S>where
S: Unpin,
impl<S> UnwindSafe for SyncReplayEngine<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