pub enum DeadLetterReason {
ChannelClosed,
ChannelNotFound,
RecipientUnavailable,
MaxRetriesExceeded,
Expired,
ValidationFailed(String),
}Expand description
Reason a message was dead-lettered.
Variants§
ChannelClosed
The target channel was closed.
ChannelNotFound
The target channel was not found.
The intended recipient was unavailable.
MaxRetriesExceeded
Maximum retry attempts were exceeded.
Expired
The message expired (TTL exceeded).
ValidationFailed(String)
The message failed validation.
Trait Implementations§
Source§impl Clone for DeadLetterReason
impl Clone for DeadLetterReason
Source§fn clone(&self) -> DeadLetterReason
fn clone(&self) -> DeadLetterReason
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 DeadLetterReason
impl Debug for DeadLetterReason
Source§impl<'de> Deserialize<'de> for DeadLetterReason
impl<'de> Deserialize<'de> for DeadLetterReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DeadLetterReason
impl Display for DeadLetterReason
impl Eq for DeadLetterReason
Source§impl PartialEq for DeadLetterReason
impl PartialEq for DeadLetterReason
Source§impl Serialize for DeadLetterReason
impl Serialize for DeadLetterReason
impl StructuralPartialEq for DeadLetterReason
Auto Trait Implementations§
impl Freeze for DeadLetterReason
impl RefUnwindSafe for DeadLetterReason
impl Send for DeadLetterReason
impl Sync for DeadLetterReason
impl Unpin for DeadLetterReason
impl UnsafeUnpin for DeadLetterReason
impl UnwindSafe for DeadLetterReason
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