pub struct DeadLetterQueue { /* private fields */ }Expand description
Dead Letter Queue for storing failed events
Implementations§
Source§impl DeadLetterQueue
impl DeadLetterQueue
Sourcepub fn new(conn: Arc<Connection>) -> Result<Self>
pub fn new(conn: Arc<Connection>) -> Result<Self>
Create a new dead letter queue
Sourcepub fn connection(&self) -> &Arc<Connection>
pub fn connection(&self) -> &Arc<Connection>
Get reference to the underlying connection
Sourcepub fn add(
&self,
event_id: EventId,
event_bytes: &[u8],
error: &AzothError,
) -> Result<i64>
pub fn add( &self, event_id: EventId, event_bytes: &[u8], error: &AzothError, ) -> Result<i64>
Add a failed event to the dead letter queue
Sourcepub fn mark_retry(&self, id: i64) -> Result<()>
pub fn mark_retry(&self, id: i64) -> Result<()>
Mark an event for retry
Auto Trait Implementations§
impl Freeze for DeadLetterQueue
impl !RefUnwindSafe for DeadLetterQueue
impl !Send for DeadLetterQueue
impl !Sync for DeadLetterQueue
impl Unpin for DeadLetterQueue
impl !UnwindSafe for DeadLetterQueue
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