pub struct MemoryAckHandle { /* private fields */ }Expand description
In-memory acknowledgment handle.
Trait Implementations§
Source§impl AckHandle for MemoryAckHandle
impl AckHandle for MemoryAckHandle
Source§fn ack<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Acknowledge successful message processing.
Source§fn nack<'life0, 'async_trait>(
&'life0 self,
requeue: bool,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn nack<'life0, 'async_trait>(
&'life0 self,
requeue: bool,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Negative acknowledge message processing failure. Read more
Source§fn retry_with_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 Message<Value>,
_delay_ms: u64,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn retry_with_delay<'life0, 'life1, 'async_trait>(
&'life0 self,
_message: &'life1 Message<Value>,
_delay_ms: u64,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retry message with a delay (backend-specific implementation). Read more
Source§fn send_to_dlq<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 Message<Value>,
_error_message: &'life2 str,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_to_dlq<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_message: &'life1 Message<Value>,
_error_message: &'life2 str,
) -> Pin<Box<dyn Future<Output = WorkerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Send message to Dead Letter Queue after retries are exhausted. Read more
Auto Trait Implementations§
impl Freeze for MemoryAckHandle
impl RefUnwindSafe for MemoryAckHandle
impl Send for MemoryAckHandle
impl Sync for MemoryAckHandle
impl Unpin for MemoryAckHandle
impl UnsafeUnpin for MemoryAckHandle
impl UnwindSafe for MemoryAckHandle
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