Trait hedwig::AcknowledgeToken[][src]

pub trait AcknowledgeToken {
    type AckError;
    type NackError;
    type ModifyError;
    fn ack<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::AckError>> + Send + 'async_trait>>
    where
        Self: 'async_trait
;
fn nack<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::NackError>> + Send + 'async_trait>>
    where
        Self: 'async_trait
;
fn modify_deadline<'life0, 'async_trait>(
        &'life0 mut self,
        seconds: u32
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::ModifyError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

A token associated with some message received from a message service, used to issue an ack/nack/modify request

See the documentation for acknowledging messages on Consumer

Associated Types

Errors returned by ack

Errors returned by nack

Errors returned by modify_deadline

Required methods

Acknowledge the associated message

Negatively acknowledge the associated message

Change the associated message’s acknowledge deadline to the given number of seconds

Implementors