Trait celery::broker::Delivery

source ·
pub trait Delivery: TryDeserializeMessage + Send + Sync + Debug {
    // Required methods
    fn resend<'life0, 'life1, 'async_trait>(
        &'life0 self,
        broker: &'life1 dyn Broker,
        eta: Option<DateTime<Utc>>
    ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn remove<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn ack<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The type representing a successful delivery.

Required Methods§

source

fn resend<'life0, 'life1, 'async_trait>( &'life0 self, broker: &'life1 dyn Broker, eta: Option<DateTime<Utc>> ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn remove<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn ack<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

source§

impl Delivery for (Channel, Delivery)

source§

fn resend<'life0, 'life1, 'async_trait>( &'life0 self, _broker: &'life1 dyn Broker, _eta: Option<DateTime<Utc>> ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn remove<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn ack<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

impl Delivery for Delivery

source§

fn resend<'life0, 'life1, 'async_trait>( &'life0 self, broker: &'life1 dyn Broker, eta: Option<DateTime<Utc>> ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn remove<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

fn ack<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), BrokerError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§