pub struct PostgresHistoryReplayProvider { /* private fields */ }Expand description
HistoryReplayProvider backed by PostgresHistoryStore.
Implementations§
Source§impl PostgresHistoryReplayProvider
impl PostgresHistoryReplayProvider
pub fn new(config: PostgresConfig) -> Self
Trait Implementations§
Source§impl HistoryReplayProvider for PostgresHistoryReplayProvider
impl HistoryReplayProvider for PostgresHistoryReplayProvider
Source§fn replay_to_store(
&self,
until: &str,
handler_registry: &HandlerRegistry,
) -> Result<Arc<StoreRegistry>, String>
fn replay_to_store( &self, until: &str, handler_registry: &HandlerRegistry, ) -> Result<Arc<StoreRegistry>, String>
Replay all events with
created_at <= until into a fresh StoreRegistry. Read moreAuto Trait Implementations§
impl Freeze for PostgresHistoryReplayProvider
impl RefUnwindSafe for PostgresHistoryReplayProvider
impl Send for PostgresHistoryReplayProvider
impl Sync for PostgresHistoryReplayProvider
impl Unpin for PostgresHistoryReplayProvider
impl UnsafeUnpin for PostgresHistoryReplayProvider
impl UnwindSafe for PostgresHistoryReplayProvider
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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