OrderEvents

Trait OrderEvents 

Source
pub trait OrderEvents: PaymentProcessor {
    // Provided methods
    fn on_payment_in_progress<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_pending_confirmation<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_confirmed<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_fulfilled<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_cancelled<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn on_payment_in_progress<'life0, 'life1, 'async_trait>( &'life0 mut self, _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn on_pending_confirmation<'life0, 'life1, 'async_trait>( &'life0 mut self, _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn on_confirmed<'life0, 'life1, 'async_trait>( &'life0 mut self, _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn on_fulfilled<'life0, 'life1, 'async_trait>( &'life0 mut self, _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn on_cancelled<'life0, 'life1, 'async_trait>( &'life0 mut self, _order: &'life1 Order<Payment<<Self as PaymentProcessor>::Data>>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§