Skip to main content

PostgresProjectionReset

Trait PostgresProjectionReset 

Source
pub trait PostgresProjectionReset: Send {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn reset<'a, 'c>(
        &'a mut self,
        tx: &'a mut Transaction<'c, Postgres>,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send + 'a
       where 'c: 'a;
}
Expand description

Application-owned read-model reinitialization performed in the leader transaction.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Error returned by application reset code.

Required Methods§

Source

fn reset<'a, 'c>( &'a mut self, tx: &'a mut Transaction<'c, Postgres>, ) -> impl Future<Output = Result<(), Self::Error>> + Send + 'a
where 'c: 'a,

Reinitializes the read model using the runner-owned transaction.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§