pub struct OutboxProcessorResources {
pub postgres_pool: Pool<Postgres>,
pub sqs_client: Option<SqsClient>,
pub sns_client: Option<SnsClient>,
pub http_timeout_in_millis: Option<u64>,
pub outbox_query_limit: Option<u32>,
pub outbox_execution_interval_in_seconds: Option<u64>,
pub delete_after_process_successfully: Option<bool>,
pub max_in_flight_interval_in_seconds: Option<u64>,
pub outbox_failure_limit: Option<u32>,
}
Fields§
§postgres_pool: Pool<Postgres>
§sqs_client: Option<SqsClient>
§sns_client: Option<SnsClient>
§http_timeout_in_millis: Option<u64>
§outbox_query_limit: Option<u32>
§outbox_execution_interval_in_seconds: Option<u64>
§delete_after_process_successfully: Option<bool>
§max_in_flight_interval_in_seconds: Option<u64>
§outbox_failure_limit: Option<u32>
Implementations§
source§impl OutboxProcessorResources
impl OutboxProcessorResources
pub fn new( postgres_pool: Pool<Postgres>, sqs_client: Option<SqsClient>, sns_client: Option<SnsClient>, ) -> Self
pub fn with_http_timeout_in_millis(self, http_timeout: u64) -> Self
pub fn with_outbox_query_limit(self, outbox_query_limit: u32) -> Self
pub fn with_outbox_execution_interval_in_seconds( self, outbox_execution_interval_in_seconds: u64, ) -> Self
pub fn with_delete_after_process_successfully( self, delete_after_process_successfully: bool, ) -> Self
pub fn with_max_in_flight_interval_in_seconds( self, max_in_flight_interval_in_seconds: u64, ) -> Self
pub fn with_outbox_failure_limit(self, outbox_failure_limit: u32) -> Self
Trait Implementations§
source§impl Clone for OutboxProcessorResources
impl Clone for OutboxProcessorResources
source§fn clone(&self) -> OutboxProcessorResources
fn clone(&self) -> OutboxProcessorResources
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OutboxProcessorResources
impl !RefUnwindSafe for OutboxProcessorResources
impl Send for OutboxProcessorResources
impl Sync for OutboxProcessorResources
impl Unpin for OutboxProcessorResources
impl !UnwindSafe for OutboxProcessorResources
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.