pub struct DeadLetter {
pub task_id: String,
pub attempts: u32,
pub error: String,
pub timestamp: u64,
}Expand description
A record describing why a task was dead-lettered.
Fields§
§task_id: StringThe task that failed.
attempts: u32Number of attempts made before giving up.
error: StringThe final error message.
timestamp: u64When the task was dead-lettered (ms since epoch).
Trait Implementations§
Source§impl Clone for DeadLetter
impl Clone for DeadLetter
Source§fn clone(&self) -> DeadLetter
fn clone(&self) -> DeadLetter
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 DeadLetter
impl Debug for DeadLetter
Source§impl<'de> Deserialize<'de> for DeadLetter
impl<'de> Deserialize<'de> for DeadLetter
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
Auto Trait Implementations§
impl Freeze for DeadLetter
impl RefUnwindSafe for DeadLetter
impl Send for DeadLetter
impl Sync for DeadLetter
impl Unpin for DeadLetter
impl UnsafeUnpin for DeadLetter
impl UnwindSafe for DeadLetter
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