pub struct DeadLetterConfig {
pub max_size: usize,
pub retention_period_secs: u64,
pub persist_to_disk: bool,
pub persistence_path: Option<String>,
pub cleanup_interval_secs: u64,
}Expand description
Configuration for the dead letter queue
Fields§
§max_size: usizeMaximum number of failed operations to keep in memory
retention_period_secs: u64How long to keep failed operations before purging (in seconds)
persist_to_disk: boolWhether to persist to disk
persistence_path: Option<String>Path for disk persistence (if enabled)
cleanup_interval_secs: u64How often to run cleanup (in seconds)
Trait Implementations§
Source§impl Clone for DeadLetterConfig
impl Clone for DeadLetterConfig
Source§fn clone(&self) -> DeadLetterConfig
fn clone(&self) -> DeadLetterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeadLetterConfig
impl Debug for DeadLetterConfig
Auto Trait Implementations§
impl Freeze for DeadLetterConfig
impl RefUnwindSafe for DeadLetterConfig
impl Send for DeadLetterConfig
impl Sync for DeadLetterConfig
impl Unpin for DeadLetterConfig
impl UnsafeUnpin for DeadLetterConfig
impl UnwindSafe for DeadLetterConfig
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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