pub struct OutboxRepository;Implementations§
Source§impl OutboxRepository
impl OutboxRepository
pub async fn list( app_state: &AppState, ) -> Result<Vec<Outbox>, OutboxPatternProcessorError>
pub async fn mark_as_processed( app_state: &AppState, transaction: &mut Transaction<'_, Postgres>, outboxes: &[Outbox], ) -> Result<(), OutboxPatternProcessorError>
pub async fn delete_processed( app_state: &AppState, transaction: &mut Transaction<'_, Postgres>, outboxes: &[Outbox], ) -> Result<(), OutboxPatternProcessorError>
pub async fn increase_attempts( app_state: &AppState, transaction: &mut Transaction<'_, Postgres>, outboxes: &[Outbox], ) -> Result<(), OutboxPatternProcessorError>
pub async fn clear_processed_locked_partition_key( transaction: &mut Transaction<'_, Postgres>, ) -> Result<(), OutboxPatternProcessorError>
pub async fn find_cleaner_schedule( transaction: &mut Transaction<'_, Postgres>, ) -> Result<Option<OutboxCleanerSchedule>, OutboxPatternProcessorError>
pub async fn update_last_cleaner_execution( transaction: &mut Transaction<'_, Postgres>, ) -> Result<(), OutboxPatternProcessorError>
Source§impl OutboxRepository
impl OutboxRepository
pub async fn insert( db_conn: &mut PgConnection, outbox: Outbox, ) -> Result<Outbox, OutboxPatternProcessorError>
pub async fn insert_all( db_conn: &mut PgConnection, outboxes: Vec<Outbox>, ) -> Result<Vec<Outbox>, OutboxPatternProcessorError>
Auto Trait Implementations§
impl Freeze for OutboxRepository
impl RefUnwindSafe for OutboxRepository
impl Send for OutboxRepository
impl Sync for OutboxRepository
impl Unpin for OutboxRepository
impl UnsafeUnpin for OutboxRepository
impl UnwindSafe for OutboxRepository
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 moreCreates a shared type from an unshared type.