pub struct ReplayManager { /* private fields */ }Expand description
Manages event replay and projection rebuilding
Implementations§
Source§impl ReplayManager
impl ReplayManager
pub fn new() -> Self
Sourcepub fn start_replay(
&self,
store: Arc<EventStore>,
request: StartReplayRequest,
) -> Result<StartReplayResponse>
pub fn start_replay( &self, store: Arc<EventStore>, request: StartReplayRequest, ) -> Result<StartReplayResponse>
Start a replay operation
Sourcepub fn get_progress(&self, replay_id: Uuid) -> Result<ReplayProgress>
pub fn get_progress(&self, replay_id: Uuid) -> Result<ReplayProgress>
Get progress for a replay operation
Sourcepub fn cancel_replay(&self, replay_id: Uuid) -> Result<()>
pub fn cancel_replay(&self, replay_id: Uuid) -> Result<()>
Cancel a running replay
Sourcepub fn list_replays(&self) -> Vec<ReplayProgress>
pub fn list_replays(&self) -> Vec<ReplayProgress>
List all replay operations
Sourcepub fn delete_replay(&self, replay_id: Uuid) -> Result<bool>
pub fn delete_replay(&self, replay_id: Uuid) -> Result<bool>
Delete a completed or failed replay from history
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplayManager
impl !RefUnwindSafe for ReplayManager
impl Send for ReplayManager
impl Sync for ReplayManager
impl Unpin for ReplayManager
impl !UnwindSafe for ReplayManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more