pub struct PublishOptions {
pub persistent: bool,
pub prefetch_count: u16,
pub use_retry_queue: bool,
pub use_dead_letter: bool,
pub max_retries: usize,
pub retry_interval_ms: u64,
pub processing_timeout_ms: Option<u64>,
}Expand description
Options controlling queue declaration and failure handling.
T elsewhere is the JSON message type; these options apply to any message type.
Fields§
§persistent: boolDeclare queues as durable. Defaults to true.
prefetch_count: u16Maximum unacknowledged messages per consumer. Defaults to 16.
use_retry_queue: boolDeclare and use the <name>.retry queue. Defaults to false.
use_dead_letter: boolDeclare and use the <name>.dlq queue. Defaults to false.
max_retries: usizeTimes a message is resent to the retry queue before dead-lettering. Defaults to 5.
retry_interval_ms: u64Delay before a retry-queue message is redelivered. Defaults to 30_000 ms.
processing_timeout_ms: Option<u64>Per-message handler timeout; None means no timeout. Defaults to None.
Trait Implementations§
Source§impl Clone for PublishOptions
impl Clone for PublishOptions
Source§impl Debug for PublishOptions
impl Debug for PublishOptions
Auto Trait Implementations§
impl Freeze for PublishOptions
impl RefUnwindSafe for PublishOptions
impl Send for PublishOptions
impl Sync for PublishOptions
impl Unpin for PublishOptions
impl UnsafeUnpin for PublishOptions
impl UnwindSafe for PublishOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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